marcsello
745d960d75
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit 8f8bebb74a
.
17 lines
557 B
Docker
17 lines
557 B
Docker
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
|
|
|
|
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
|
|
|
|
ENV GUNICORN_LOGLEVEL="info"
|
|
|
|
EXPOSE 8000
|
|
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]
|
|
|