Skip to content

Commit 1c6285d

Browse files
committed
fix(docker): copy uv build inputs for podman compatibility
1 parent 602347d commit 1c6285d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ ENV UV_LINK_MODE=copy
1717
ENV PYTHONDONTWRITEBYTECODE=1
1818
ENV PYTHONUNBUFFERED=1
1919

20+
# Copy only requirements to cache them in docker layer
21+
COPY uv.lock pyproject.toml /app/
22+
2023
# Install the project's dependencies using the lockfile and settings
2124
RUN --mount=type=cache,target=/root/.cache/uv \
22-
--mount=type=bind,source=uv.lock,target=uv.lock \
23-
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
2425
uv sync --frozen --no-install-project --no-group dev
2526

26-
# Copy only requirements to cache them in docker layer
27-
COPY uv.lock pyproject.toml /app/
28-
2927
# Sync the project
3028
RUN --mount=type=cache,target=/root/.cache/uv \
3129
uv sync --frozen --no-group dev

0 commit comments

Comments
 (0)