storage-service/Dockerfile
marcsello 01d7c76cff
Some checks failed
continuous-integration/drone/push Build is failing
Logging stuff
2021-08-09 15:48:19 +02:00

17 lines
403 B
Docker

FROM python:3.9-slim
ADD storage_service requirements.txt /storage_service/
WORKDIR /storage_service/
ENV PIP_NO_CACHE_DIR=true
ENV TZ Europe/Budapest
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN pip3 install -r requirements.txt
ENV GUNICORN_LOGLEVEL="info"
EXPOSE 8000
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]