storage-service/Dockerfile

17 lines
403 B
Docker
Raw Permalink Normal View History

2020-12-06 11:26:12 +01:00
FROM python:3.9-slim
2020-03-09 18:51:34 +01:00
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
2021-08-09 15:48:19 +02:00
ENV GUNICORN_LOGLEVEL="info"
2020-03-25 00:19:12 +01:00
EXPOSE 8000
2021-08-09 15:48:19 +02:00
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]
2020-03-09 18:51:34 +01:00