From 9f9f76ff28d004698558c6ffa2f161b9efcaf4b2 Mon Sep 17 00:00:00 2001 From: Michele Santuari Date: Mon, 26 Apr 2021 16:32:41 +0200 Subject: [PATCH] ignore pip cache in docker build --- template/python3-debian/Dockerfile | 4 ++-- template/python3/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/template/python3-debian/Dockerfile b/template/python3-debian/Dockerfile index b90e6a30..31e387dc 100644 --- a/template/python3-debian/Dockerfile +++ b/template/python3-debian/Dockerfile @@ -27,7 +27,7 @@ USER app ENV PATH=$PATH:/home/app/.local/bin:/home/app/python/bin/ ENV PYTHONPATH=$PYTHONPATH:/home/app/python -RUN pip install -r requirements.txt --target=/home/app/python +RUN pip install --no-cache-dir -r requirements.txt --target=/home/app/python RUN mkdir -p function RUN touch ./function/__init__.py @@ -35,7 +35,7 @@ RUN touch ./function/__init__.py WORKDIR /home/app/function/ COPY function/requirements.txt . -RUN pip install -r requirements.txt --target=/home/app/python +RUN pip install --no-cache-dir -r requirements.txt --target=/home/app/python WORKDIR /home/app/ diff --git a/template/python3/Dockerfile b/template/python3/Dockerfile index a243d0fd..98117599 100644 --- a/template/python3/Dockerfile +++ b/template/python3/Dockerfile @@ -26,7 +26,7 @@ USER app ENV PATH=$PATH:/home/app/.local/bin:/home/app/python/bin/ ENV PYTHONPATH=$PYTHONPATH:/home/app/python -RUN pip install -r requirements.txt --target=/home/app/python +RUN pip install --no-cache-dir -r requirements.txt --target=/home/app/python RUN mkdir -p function RUN touch ./function/__init__.py @@ -34,7 +34,7 @@ RUN touch ./function/__init__.py WORKDIR /home/app/function/ COPY function/requirements.txt . -RUN pip install -r requirements.txt --target=/home/app/python +RUN pip install --no-cache-dir -r requirements.txt --target=/home/app/python WORKDIR /home/app/