File tree Expand file tree Collapse file tree
{{cookiecutter.project_slug}}/compose Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2323 --mount=type=bind,source=uv.lock,target=uv.lock:rw \
2424 uv sync --no-install-project
2525
26- ADD . ${APP_HOME}
26+ COPY . ${APP_HOME}
2727
2828RUN --mount=type=cache,target=/root/.cache/uv \
2929 uv sync
Original file line number Diff line number Diff line change 11# Python build stage
22FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS python-build-stage
33
4+ ARG APP_HOME=/app
5+
6+ WORKDIR ${APP_HOME}
7+
48RUN apt-get update && apt-get install --no-install-recommends -y \
59 # dependencies for building Python packages
610 build-essential \
@@ -10,14 +14,14 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
1014 && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
1115 && rm -rf /var/lib/apt/lists/*
1216
13- WORKDIR /app
14-
1517# Requirements are installed here to ensure they will be cached.
1618RUN --mount=type=cache,target=/root/.cache/uv \
1719# --mount=type=bind,source=uv.lock,target=uv.lock \
1820 --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
1921 uv sync --no-install-project
20- ADD . /app
22+
23+ COPY . ${APP_HOME}
24+
2125RUN --mount=type=cache,target=/root/.cache/uv \
2226 uv sync
2327
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ WORKDIR ${APP_HOME}
66
77COPY ./package.json ${APP_HOME}
88RUN npm install && npm cache clean --force
9- ADD . ${APP_HOME}
9+ COPY . ${APP_HOME}
1010{%- if cookiecutter.frontend_pipeline == 'Webpack' and cookiecutter.use_whitenoise == 'n' %}
1111{%- if cookiecutter.cloud_provider == 'AWS' %}
1212ARG DJANGO_AWS_STORAGE_BUCKET_NAME
@@ -47,7 +47,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
4747{%- if cookiecutter.frontend_pipeline in ['Gulp' , 'Webpack' ] %}
4848COPY --from=client-builder ${APP_HOME} ${APP_HOME}
4949{% else %}
50- ADD . ${APP_HOME}
50+ COPY . ${APP_HOME}
5151{%- endif %}
5252
5353RUN --mount=type=cache,target=/root/.cache/uv \
You can’t perform that action at this time.
0 commit comments