feat: disable pip cache during docker build

This commit is contained in:
jo 2023-01-11 16:43:32 +01:00
commit 64f54fa709
No known key found for this signature in database
GPG key ID: B2FEC9B22722B984

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