storage-service/Dockerfile

15 lines
334 B
Docker
Raw Normal View History

2020-03-09 18:51:34 +01:00
FROM python:3.8-slim
2020-03-25 00:19:12 +01:00
ADD storage_service requirements.txt /storage_service/
WORKDIR /storage_service/
2020-03-09 18:51:34 +01:00
2020-03-25 00:19:12 +01:00
ENV PIP_NO_CACHE_DIR=true
2020-03-09 18:51:34 +01:00
ENV TZ Europe/Budapest
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2020-03-25 00:19:12 +01:00
RUN pip3 install -r requirements.txt
2020-03-09 18:51:34 +01:00
2020-03-25 00:19:12 +01:00
EXPOSE 8000
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]
2020-03-09 18:51:34 +01:00