From 64f54fa7094c8d5324b3c3d5334d0429799d7ddc Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 11 Jan 2023 16:43:32 +0100 Subject: [PATCH] feat: disable pip cache during docker build --- api/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/Dockerfile b/api/Dockerfile index 79ab8afef..341b4c67b 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -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