mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-13 07:22:35 +03:00
Use --locked
over --frozen
in production Docker image
https://github.com/astral-sh/uv-docker-example/pull/53
This commit is contained in:
parent
ff9ad66afc
commit
0586999b4d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user