docker-thermostat/Dockerfile
2024-06-07 22:19:58 +02:00

14 lines
489 B
Docker

FROM debian:bookworm
MAINTAINER yohan <783b8c87@scimetis.net>
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Europe/Paris
RUN apt-get update && apt-get -y install gunicorn sqlite3 python3-pip python3-requests python3-yaml python3-flask python3-serial
ENV PIP_BREAK_SYSTEM_PACKAGES 1
RUN pip install flask-restx==1.3.0
WORKDIR /root
COPY find_ttyUSB.sh /root/
COPY relay.py /root/
COPY thermostat.py /root/
ENV FLASK_APP thermostat.py
ENTRYPOINT ["/usr/bin/gunicorn", "thermostat:gunicorn_app"]