Dockerfile 458 Bytes
Newer Older
Lukas Böhm's avatar
Lukas Böhm committed
1
2
FROM python:3.8-alpine

Lukas Böhm's avatar
Lukas Böhm committed
3
WORKDIR /home/chiefsend
Lukas Böhm's avatar
Lukas Böhm committed
4

Lukas Böhm's avatar
Lukas Böhm committed
5
# get python ready
Lukas Böhm's avatar
Lukas Böhm committed
6
7
8
9
10
11
12
13
14
15
16
COPY ./requirements.txt ./requirements.txt
RUN pip install -r requirements.txt
RUN pip install gunicorn

# copy actual app
COPY app app
COPY chiefsend.py chiefsend.py

ENV FLASK_APP chiefsend.py

EXPOSE 5000
Lukas Böhm's avatar
Lukas Böhm committed
17
EXPOSE 6379
Lukas Böhm's avatar
Lukas Böhm committed
18

Lukas Bhm's avatar
Lukas Bhm committed
19
ENTRYPOINT gunicorn -b :5000 --workers=3 --worker-class=tornado  --timeout=90 --graceful-timeout=30 --log-level=DEBUG --access-logfile - --error-logfile - chiefsend:app