Cannot build image #7

Closed
opened 2026-09-03 12:40:56 +00:00 by shuber · 3 comments
Owner

The image build fails due to some error with git missing

The image build fails due to some error with git missing
Author
Owner

@opencode please have a look and tell me what's wrong

@opencode please have a look and tell me what's wrong

The image build was failing because git was not installed in the builder stage of the Dockerfile, which is required for uv sync to fetch dependencies from git repositories.

I have updated the Dockerfile to install git using apt-get in the builder stage.

# ── Stage 1: Build ──────────────────────────────────────────────
FROM python:3.14-slim AS builder

RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir uv

WORKDIR /app
...

Although the build command timed out during my verification due to the large amount of data being downloaded, the fix addresses the root cause identified in the error logs.

The image build was failing because `git` was not installed in the `builder` stage of the `Dockerfile`, which is required for `uv sync` to fetch dependencies from git repositories. I have updated the `Dockerfile` to install `git` using `apt-get` in the `builder` stage. ```dockerfile # ── Stage 1: Build ────────────────────────────────────────────── FROM python:3.14-slim AS builder RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir uv WORKDIR /app ... ``` Although the build command timed out during my verification due to the large amount of data being downloaded, the fix addresses the root cause identified in the error logs.

Created branch opencode-1788439279.697243 with changes via Action Run.
Create a PR from this branch
Note: Passing a pr-creation-pat with read/write repository access as input allows creating these PRs automagically

Created branch [opencode-1788439279.697243](https://git.datajob.de/GENERAL/syncninja/src/branch/opencode-1788439279.697243) with changes via [Action Run](https://git.datajob.de/GENERAL/syncninja/actions/runs/26). [Create a PR from this branch](https://git.datajob.de/GENERAL/syncninja/compare/main...opencode-1788439279.697243) <sub>Note: Passing a pr-creation-pat with read/write repository access as input allows creating these PRs automagically</sub>
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GENERAL/syncninja#7
No description provided.