kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
feat: improve docker caching
The apk dependencies will change less often than the venv from the builder.environments/review-docs-docs-p5xm4f/deployments/16617
rodzic
e93e6bbb74
commit
165011ff6d
|
@ -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
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Improve docker caching
|
Ładowanie…
Reference in New Issue