Commit 50cecd54 authored by Jerome Touvier's avatar Jerome Touvier
Browse files

docker update

parent 66857341
Pipeline #67765 passed with stage
in 2 minutes and 22 seconds
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"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment