Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
ws-sacpz-resp
Commits
50cecd54
Commit
50cecd54
authored
May 26, 2021
by
Jerome Touvier
Browse files
docker update
parent
66857341
Pipeline
#67765
passed with stage
in 2 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
50cecd54
FROM
gricad-registry.univ-grenoble-alpes.fr/osug/resif/resif_docker/obspy:1.2.1-python-3.8-slim
MAINTAINER
RESIF DC <resif-dc@univ-grenoble-alpes.fr>
# Building heavy python dependencies as a first stage
# will build ospy for instance
FROM
python:3.9-slim AS python-deps
RUN
apt-get update
&&
apt-get
install
-y
--no-install-recommends
gcc libc6-dev
COPY
requirements.txt /
RUN
pip
install
--no-cache-dir
-r
/requirements.txt
FROM
python:3.9-slim
MAINTAINER
RESIF DC <resif-dc@univ-grenoble-alpes.fr>
# Get the dependencies from previous stage
COPY
--from=python-deps /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
RUN
pip
install
--no-cache-dir
gunicorn
RUN
mkdir
-p
/usr/share/man/man1
RUN
apt-get update
&&
apt-get
install
-y
wget openjdk-11-jre-headless
&&
apt-get clean
...
...
@@ -11,6 +19,7 @@ COPY start_resp.py start_sacpz.py ./
COPY
apps ./apps/
COPY
templates ./templates/
COPY
static ./static/
USER
1000
ENTRYPOINT
["gunicorn", "--bind", "0.0.0.0:8000"]
CMD
["start_sacpz:app"]
requirements.txt
View file @
50cecd54
Flask
==
1.1.2
Flask
==
2.0.1
obspy
==1.2.2
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment