docker-thermostat/Dockerfile

12 lines
426 B
Docker
Raw Normal View History

2024-06-01 17:40:56 +00:00
FROM debian:bookworm
MAINTAINER yohan <783b8c87@scimetis.net>
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Europe/Paris
2024-06-06 22:45:37 +00:00
RUN apt-get update && apt-get -y install gunicorn sqlite3 python3-pip python3-requests python3-yaml python3-flask
2024-06-01 17:40:56 +00:00
ENV PIP_BREAK_SYSTEM_PACKAGES 1
2024-06-06 10:22:13 +00:00
RUN pip install flask-restx==1.3.0
2024-06-01 17:40:56 +00:00
WORKDIR /root
COPY thermostat.py /root/
2024-06-01 21:42:54 +00:00
ENV FLASK_APP thermostat.py
2024-06-06 23:46:51 +00:00
ENTRYPOINT ["/usr/bin/gunicorn", "thermostat:gunicorn_app"]