docker-thermostat/Dockerfile

14 lines
494 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-08 04:57:04 +00:00
RUN apt-get update && apt-get -y install gunicorn sqlite3 python3-pip python3-requests python3-yaml python3-flask python3-serial udev
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
2024-06-07 20:03:40 +00:00
COPY find_ttyUSB.sh /root/
COPY relay.py /root/
2024-06-01 17:40:56 +00:00
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"]