docker-thermostat/Dockerfile

13 lines
410 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 10:22:13 +00:00
RUN apt-get update && apt-get -y install 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 21:49:07 +00:00
STOPSIGNAL SIGINT
2024-06-06 22:19:27 +00:00
ENTRYPOINT ["/root/thermostat.py"]