birb_latency_collector/Dockerfile

17 lines
557 B
Docker
Raw Normal View History

2021-11-16 20:40:17 +01:00
FROM python:3.9-slim
ADD birb_latency_collector requirements.txt /birb_latency_collector/
WORKDIR /birb_latency_collector/
ENV PIP_NO_CACHE_DIR=true
ENV TZ Europe/Budapest
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2021-12-09 22:11:44 +01:00
RUN apt update && apt install -y git && git clone https://github.com/marcsello/flask-influxdb2.git && pip3 install ./flask-influxdb2/ && pip3 install -r requirements.txt
2021-11-16 20:40:17 +01:00
ENV GUNICORN_LOGLEVEL="info"
EXPOSE 8000
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]