Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit af0a40b4 authored by Jerome Touvier's avatar Jerome Touvier
Browse files

docker update

parent f6393783
Pipeline #67794 passed with stage
in 1 minute and 35 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
RUN pip install --no-cache-dir gunicorn
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
WORKDIR /appli
COPY start.py ./
COPY apps ./apps/
COPY templates ./templates/
COPY static ./static/
USER 1000
CMD ["/bin/bash", "-c", "gunicorn --bind start:app"]
#sudo docker build -t ws-evalresp ./
#sudo rsync -a --exclude .git* . /srv/deploy/ws-evalresp
#docker run -d --rm -p 9100:8000 -v /srv/deploy/ws-evalresp:/appli --name ws-evalresp -e RUNMODE=production ws-evalresp
#wget "http://localhost:9100/1/query?net=FR&sta=CIEL&loc=00&cha=HHE&time=2017-01-01T00:00:00&format=fap" -O resp.txt
Markdown is supported
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