Don't use --frozen with uv
This commit is contained in:
10
Dockerfile
10
Dockerfile
@ -8,14 +8,10 @@ WORKDIR /app
|
||||
# Install dependencies
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
--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
|
||||
ADD main.py misc.py pyproject.toml /app/
|
||||
|
||||
# Sync the project
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
uv sync --frozen
|
||||
# Copy the application files
|
||||
ADD main.py misc.py /app/
|
||||
|
||||
# Set the environment variables
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
Reference in New Issue
Block a user