Test shutdown.

This commit is contained in:
yohan 2024-06-07 00:45:37 +02:00
parent 1de6cd2275
commit 7746341e7a

View File

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