-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (17 loc) · 739 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.8-slim-buster as baseStage
MAINTAINER rey <sebastien.rey-coyrehourcq@univ-rouen.fr>
RUN apt-get update && apt-get install -y wget gnupg2 ca-certificates curl bash sudo gosu
ARG GID
ARG UID
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN groupadd -g $GID flask && useradd -m -s /bin/sh -g flask -u $UID flask
COPY . /home/flask/covid
WORKDIR /home/flask/covid/
# install dependencies
RUN pip install --upgrade pip
RUN pip install --upgrade setuptools
RUN pip install --no-cache-dir -r requirements.txt
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "wsgi:app"]