Skip to content
Snippets Groups Projects
Commit 42250395 authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Add pip cache purge

parent 2f782ed8
No related branches found
No related tags found
1 merge request!169Python safety
ARG FROM_IMAGE=usgs/python:3.8-obspy ARG FROM_IMAGE=usgs/python:3.8-obspy
FROM ${FROM_IMAGE} FROM ${FROM_IMAGE}
ARG GIT_BRANCH_NAME=none ARG GIT_BRANCH_NAME=none
...@@ -21,12 +19,14 @@ RUN cd /geomag-algorithms \ ...@@ -21,12 +19,14 @@ RUN cd /geomag-algorithms \
# install into system python # install into system python
&& poetry export -o requirements.txt --dev --without-hashes \ && poetry export -o requirements.txt --dev --without-hashes \
# only install dependencies, not project # 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 # install rest of library separate from dependencies
COPY . /geomag-algorithms COPY . /geomag-algorithms
RUN cd /geomag-algorithms \ RUN cd /geomag-algorithms \
&& pip install . \ && pip install . \
&& pip cache purge \
# add data directory owned by usgs-user # add data directory owned by usgs-user
&& mkdir -p /data \ && mkdir -p /data \
&& chown -R usgs-user:usgs-user /data && chown -R usgs-user:usgs-user /data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment