From 0586999b4daef940b413cffd813bd9bd3882c8df Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sun, 7 Sep 2025 13:35:42 +0100 Subject: [PATCH] Use `--locked` over `--frozen` in production Docker image https://github.com/astral-sh/uv-docker-example/pull/53 --- .../compose/production/django/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile index 155637809..d7999cd9f 100644 --- a/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile +++ b/{{cookiecutter.project_slug}}/compose/production/django/Dockerfile @@ -44,7 +44,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \ 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-dev + uv sync --locked --no-install-project --no-dev {%- if cookiecutter.frontend_pipeline in ['Gulp', 'Webpack'] %} COPY --from=client-builder ${APP_HOME} ${APP_HOME} {% else %} @@ -54,7 +54,7 @@ COPY . ${APP_HOME} 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-dev + uv sync --locked --no-dev # Python 'run' stage FROM python:3.12-slim-bookworm AS python-run-stage