From 42250395a2ff6cbe98dce8190545edb524043eb1 Mon Sep 17 00:00:00 2001 From: Jeremy Fee <jmfee@usgs.gov> Date: Fri, 18 Mar 2022 15:28:35 -0600 Subject: [PATCH] Add pip cache purge --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2b59aeb9..9730def5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ ARG FROM_IMAGE=usgs/python:3.8-obspy - - FROM ${FROM_IMAGE} ARG GIT_BRANCH_NAME=none @@ -21,12 +19,14 @@ RUN cd /geomag-algorithms \ # install into system python && poetry export -o requirements.txt --dev --without-hashes \ # only install dependencies, not project - && pip install -r requirements.txt + && pip install -r requirements.txt \ + && pip cache purge # install rest of library separate from dependencies COPY . /geomag-algorithms RUN cd /geomag-algorithms \ && pip install . \ + && pip cache purge \ # add data directory owned by usgs-user && mkdir -p /data \ && chown -R usgs-user:usgs-user /data -- GitLab