Skip to content

docker build hangs, can't build image for uv locally #8974

@shaneikennedy

Description

@shaneikennedy
uv git:main*
❯ docker build . -t myuv --load
[+] Building 992.6s (16/18)                                    docker:desktop-linux
 => [internal] load build definition from Dockerfile                           0.0s
 => => transferring dockerfile: 1.54kB                                         0.0s
 => [internal] load metadata for docker.io/library/ubuntu:latest               1.8s
 => [internal] load .dockerignore                                              0.0s
 => => transferring context: 2B                                                0.0s
 => [ 1/14] FROM docker.io/library/ubuntu:latest@sha256:99c35190e22d294cdace2  0.0s
 => [internal] load build context                                              0.1s
 => => transferring context: 2.08MB                                            0.1s
 => CACHED [ 2/14] WORKDIR /root                                               0.0s
 => CACHED [ 3/14] RUN apt update   && apt install -y --no-install-recommends  0.0s
 => CACHED [ 4/14] RUN python3 -m venv /root/.venv                             0.0s
 => CACHED [ 5/14] RUN .venv/bin/pip install cargo-zigbuild                    0.0s
 => CACHED [ 6/14] RUN case "linux/arm64" in   "linux/arm64") echo "aarch64-u  0.0s
 => CACHED [ 7/14] COPY rust-toolchain.toml rust-toolchain.toml                0.0s
 => CACHED [ 8/14] RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup  0.0s
 => CACHED [ 9/14] RUN rustup target add $(cat rust_target.txt)                0.0s
 => [10/14] COPY crates crates                                                 0.2s
 => [11/14] COPY ./Cargo.toml Cargo.toml                                       0.0s
 => [12/14] COPY ./Cargo.lock Cargo.lock                                       0.0s
 => [13/14] RUN cargo zigbuild --bin uv --bin uvx --target $(cat rust_targe  990.3s
 => => #    Compiling uv-tool v0.0.1 (/root/crates/uv-tool)
 => => #    Compiling uv-scripts v0.0.1 (/root/crates/uv-scripts)
 => => #    Compiling tikv-jemallocator v0.6.0
 => => #    Compiling uv-performance-memory-allocator v0.1.0 (/root/crates/uv-perfo
 => => # rmance-memory-allocator)
 => => #    Compiling uv v0.5.1 (/root/crates/uv)
ERROR: failed to solve: Canceled: context canceled
uv git:main*  999s
❯ 

building the image locally hangs forever and never succeeds. This was working yesterday on possibly a very stale branch... don't rememeber how stale though unfortunately :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for clarification or support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions