feat: improve docker caching

The apk dependencies will change less often than the venv from the builder.
environments/review-docs-docs-p5xm4f/deployments/16617
jo 2023-01-11 17:13:03 +01:00
rodzic e93e6bbb74
commit 165011ff6d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B2FEC9B22722B984
2 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -81,10 +81,6 @@ ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ARG PIP_NO_CACHE_DIR=1
COPY --from=builder /venv /venv
# emulate activation by prefixing PATH
ENV PATH="/venv/bin:$PATH"
RUN set -eux; \
apk add --no-cache \
bash \
@ -103,6 +99,10 @@ RUN set -eux; \
py3-watchfiles=0.18.1-r0 \
python3
COPY --from=builder /venv /venv
# emulate activation by prefixing PATH
ENV PATH="/venv/bin:$PATH"
COPY . /app
WORKDIR /app

Wyświetl plik

@ -0,0 +1 @@
Improve docker caching