fix(docker): copy uv build inputs for podman compatibility (#878)

This commit is contained in:
Chris Caldwell 2026-08-05 17:15:00 -04:00 committed by GitHub
parent 00d6d36728
commit 0bbeb3bc43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 6 deletions

View File

@ -17,15 +17,13 @@ ENV UV_LINK_MODE=copy
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install the project's dependencies using the lockfile and settings
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --frozen --no-install-project --no-group dev
# Copy only requirements to cache them in docker layer
COPY uv.lock pyproject.toml /app/
# Install the project's dependencies using the lockfile and settings
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-install-project --no-group dev
# Sync the project
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-group dev