Fix dependencies.

This commit is contained in:
yohan 2024-06-06 12:22:13 +02:00
parent 0a2e7a25b0
commit b87ec448d6
2 changed files with 4 additions and 3 deletions

View File

@ -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"]

View File

@ -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