Skip to content

GitHub Action to build docker image fails with "no space left on device" #5

@ginic

Description

@ginic

The GitHub Action that builds the Docker image that later gets automatically pushed to DockerHub for each tagged version fails at the final step. Here's a snippet from the build for v1.0.0, which I built and pushed to DockerHub manually.

#25 [linux/arm64 builder 6/6] RUN --mount=type=cache,target=/root/.cache/uv     uv sync --locked --extra web
#25 2.187 Resolved 123 packages in 68ms
#25 2.392    Building autoipaalign @ file:///app
#25 2.556       Built autoipaalign @ file:///app
#25 2.618 Downloading pillow (5.7MiB)
#25 2.743 Downloading pydantic-core (1.8MiB)
#25 2.746 Downloading pandas (11.2MiB)
#25 2.747 Downloading ruff (11.8MiB)
#25 3.201  Downloaded pydantic-core
#25 4.024  Downloaded ruff
#25 4.860  Downloaded pillow
#25 5.590  Downloaded pandas
#25 5.592 Prepared 7 packages in 3.29s
#25 7.432 Installed 41 packages in 1.83s
#25 42.26 Bytecode compiled 13227 files in 34.82s
#25 42.26  + aiofiles==24.1.0
#25 42.26  + annotated-doc==0.0.3
#25 42.26  + annotated-types==0.7.0
#25 42.26  + anyio==4.11.0
#25 42.26  + autoipaalign==1.0.0 (from file:///app)
#25 42.26  + click==8.3.0
#25 42.26  + fastapi==0.121.0
#25 42.26  + ffmpy==0.6.4
#25 42.26  + gradio==5.29.0
#25 42.26  + gradio-client==1.10.0
#25 42.26  + groovy==0.1.2
#25 42.26  + h11==0.16.0
#25 42.26  + httpcore==1.0.9
#25 42.26  + httpx==0.28.1
#25 42.26  + iniconfig==2.3.0
#25 42.26  + orjson==3.11.4
#25 42.26  + pandas==2.3.3
#25 42.26  + pillow==11.3.0
#25 42.26  + pluggy==1.6.0
#25 42.26  + pydantic==2.11.10
#25 42.27  + pydantic-core==2.33.2
#25 42.27  + pydub==0.25.1
#25 42.27  + pytest==8.4.2
#25 42.27  + pytest-datadir==1.8.0
#25 42.27  + pytest-mock==3.15.1
#25 42.27  + python-dateutil==2.9.0.post0
#25 42.27  + python-multipart==0.0.20
#25 42.27  + pytz==2025.2
#25 42.27  + ruff==0.14.3
#25 42.27  + safehttpx==0.1.7
#25 42.27  + semantic-version==2.10.0
#25 42.27  + shellingham==1.5.4
#25 42.27  + six==1.17.0
#25 42.27  + sniffio==1.3.1
#25 42.27  + starlette==0.49.3
#25 42.27  + tomlkit==0.13.3
#25 42.27  + typer==0.20.0
#25 42.27  + typing-inspection==0.4.2
#25 42.27  + tzdata==2025.2
#25 42.27  + uvicorn==0.38.0
#25 42.27  + websockets==15.0.1
#25 DONE 42.5s
#26 [linux/arm64 stage-1 3/5] COPY --from=builder --chown=python:python /python /python
#26 DONE 0.6s
#27 [linux/arm64 stage-1 4/5] COPY --from=builder --chown=nonroot:nonroot /app /app
#27 ERROR: failed to copy files: copy file range failed: no space left on device
------
 > [linux/arm64 stage-1 4/5] COPY --from=builder --chown=nonroot:nonroot /app /app:
------
Dockerfile:37
--------------------
  35 |     
  36 |     # Copy the application from the builder
  37 | >>> COPY --from=builder --chown=nonroot:nonroot /app /app
  38 |     
  39 |     # Place executables in the environment at the front of the path
--------------------
ERROR: failed to build: failed to solve: ResourceExhausted: failed to copy files: copy file range failed: no space left on device

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions