From 7746341e7a38d141c5d2ea334a0efc85feb32108 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Fri, 7 Jun 2024 00:45:37 +0200 Subject: [PATCH] Test shutdown. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d6addfc..101b340 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,10 @@ FROM debian:bookworm MAINTAINER yohan <783b8c87@scimetis.net> ENV DEBIAN_FRONTEND noninteractive 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 RUN pip install flask-restx==1.3.0 WORKDIR /root COPY thermostat.py /root/ ENV FLASK_APP thermostat.py -STOPSIGNAL SIGINT -ENTRYPOINT ["/root/thermostat.py"] +ENTRYPOINT ["/usr/bin/gunicorn", "thermostat:app"]