feat: disable pip cache during docker build

This commit is contained in:
jo 2023-01-11 16:43:32 +01:00
parent 85d4bd60d9
commit 64f54fa709
No known key found for this signature in database
GPG Key ID: B2FEC9B22722B984
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ FROM alpine:3.17 as builder
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ARG PIP_NO_CACHE_DIR=1
RUN \
echo 'installing dependencies' && \
@ -75,6 +76,7 @@ FROM alpine:3.17 as image
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ARG PIP_NO_CACHE_DIR=1
COPY --from=builder /venv /venv
# emulate activation by prefixing PATH