green-spider-api/Dockerfile

14 lines
267 B
Docker
Raw Permalink Normal View History

2018-10-31 23:23:05 +01:00
FROM python:3.6.7-slim-jessie
2019-04-15 21:46:20 +02:00
2018-10-31 23:23:05 +01:00
ADD requirements.txt /
2019-04-15 21:46:20 +02:00
RUN pip install --upgrade pip
2018-10-31 23:23:05 +01:00
RUN pip install --no-cache-dir -r requirements.txt
ADD jsonhandler.py /
ADD main.py /
2018-11-12 22:15:47 +01:00
ENTRYPOINT ["gunicorn", "--bind=0.0.0.0:5000", "--access-logfile=-", "main:app"]
2018-10-31 23:23:05 +01:00
EXPOSE 5000