Don't use --frozen with uv

This commit is contained in:
2024-12-22 05:44:07 +01:00
parent cd7f29e9a7
commit effe9c1eb6

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