diff --git a/Dockerfile b/Dockerfile index c8353f3..39d19ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,12 @@ FROM debian:bookworm MAINTAINER yohan <783b8c87@scimetis.net> ENV DEBIAN_FRONTEND noninteractive ENV TZ Europe/Paris -RUN apt-get update && apt-get -y install python3-pip python3-requests python3-yaml python3-flask-sqlalchemy python3-flask-migrate +RUN apt-get update && apt-get -y install sqlite3 python3-pip python3-requests python3-yaml python3-flask ENV PIP_BREAK_SYSTEM_PACKAGES 1 -RUN pip install flask-restx +RUN pip install flask-restx==1.3.0 WORKDIR /root COPY thermostat.py /root/ -COPY migrate_db.sh /root/ +#COPY migrate_db.sh /root/ COPY entrypoint.sh /root/ ENV FLASK_APP thermostat.py ENTRYPOINT ["/root/entrypoint.sh"] diff --git a/thermostat.py b/thermostat.py index 248efe7..7e5982a 100644 --- a/thermostat.py +++ b/thermostat.py @@ -14,6 +14,7 @@ import requests import subprocess from threading import Thread from threading import Lock +import sqlite3 #import sqlalchemy.exc #from sqlalchemy.dialects.sqlite import insert as sqlite_upsert