Dockerfile 379 Bytes
Newer Older
Jerome Touvier's avatar
Jerome Touvier committed
1
FROM python:3.9-slim
Jerome Touvier's avatar
Jerome Touvier committed
2
MAINTAINER RESIF DC <resif-dc@univ-grenoble-alpes.fr>
Jerome Touvier's avatar
Jerome Touvier committed
3
RUN pip install --no-cache-dir gunicorn
Jerome Touvier's avatar
Jerome Touvier committed
4
5
6
7
8
9
10
11
COPY requirements.txt /
RUN pip install --no-cache-dir -r /requirements.txt

WORKDIR /appli
COPY start.py config.py ./
COPY apps ./apps/
COPY templates ./templates/
COPY static ./static/
Jerome Touvier's avatar
Jerome Touvier committed
12
USER 1000
Jerome Touvier's avatar
Jerome Touvier committed
13
14

CMD ["/bin/bash", "-c", "gunicorn --bind 0.0.0.0:8000 start:app"]