Don't use --frozen with uv
This commit is contained in:
parent
cd7f29e9a7
commit
effe9c1eb6
1 changed files with 3 additions and 7 deletions
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue