Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
42250395
Commit
42250395
authored
3 years ago
by
Jeremy M Fee
Browse files
Options
Downloads
Patches
Plain Diff
Add pip cache purge
parent
2f782ed8
No related branches found
No related tags found
1 merge request
!169
Python safety
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+3
-3
3 additions, 3 deletions
Dockerfile
with
3 additions
and
3 deletions
Dockerfile
+
3
−
3
View file @
42250395
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment