Don't use --frozen with uv

This commit is contained in:
Joakim Hellsén 2024-12-22 05:44:07 +01:00
commit effe9c1eb6
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9

View file

@ -8,14 +8,10 @@ WORKDIR /app
# Install dependencies # Install dependencies
RUN --mount=type=cache,target=/root/.cache/uv \ RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --frozen --no-install-project uv sync --no-install-project
# Copy the project into the image # Copy the application files
ADD main.py misc.py pyproject.toml /app/ ADD main.py misc.py /app/
# Sync the project
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen
# Set the environment variables # Set the environment variables
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1