2021-12-10 21:59:56 +01:00
|
|
|
FROM python:3.9-slim
|
|
|
|
|
2021-12-10 23:08:58 +01:00
|
|
|
ADD birb_scheduler_teller requirements.txt /birb_scheduler_teller/
|
|
|
|
WORKDIR /birb_scheduler_teller/
|
2021-12-10 21:59:56 +01:00
|
|
|
|
|
|
|
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"]
|
|
|
|
|