mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-14 10:02:27 +03:00
Add uv.lock & fix user
This commit is contained in:
parent
40381e2648
commit
b27d2954c2
|
@ -18,6 +18,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
# Requirements are installed here to ensure they will be cached.
|
# Requirements are installed here to ensure they will be cached.
|
||||||
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 \
|
||||||
|
--mount=type=bind,source=uv.lock,target=uv.lock \
|
||||||
uv sync --no-install-project
|
uv sync --no-install-project
|
||||||
|
|
||||||
ADD . ${APP_HOME}
|
ADD . ${APP_HOME}
|
||||||
|
|
|
@ -27,6 +27,10 @@ RUN npm run build
|
||||||
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS python-build-stage
|
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS python-build-stage
|
||||||
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
|
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
|
||||||
|
|
||||||
|
ARG APP_HOME=/app
|
||||||
|
|
||||||
|
WORKDIR ${APP_HOME}
|
||||||
|
|
||||||
# Install apt packages
|
# Install apt packages
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y \
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
# dependencies for building Python packages
|
# dependencies for building Python packages
|
||||||
|
|
Loading…
Reference in New Issue
Block a user