Fix dependencies.
This commit is contained in:
parent
0a2e7a25b0
commit
b87ec448d6
@ -2,12 +2,12 @@ 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 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
|
ENV PIP_BREAK_SYSTEM_PACKAGES 1
|
||||||
RUN pip install flask-restx
|
RUN pip install flask-restx==1.3.0
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY thermostat.py /root/
|
COPY thermostat.py /root/
|
||||||
COPY migrate_db.sh /root/
|
#COPY migrate_db.sh /root/
|
||||||
COPY entrypoint.sh /root/
|
COPY entrypoint.sh /root/
|
||||||
ENV FLASK_APP thermostat.py
|
ENV FLASK_APP thermostat.py
|
||||||
ENTRYPOINT ["/root/entrypoint.sh"]
|
ENTRYPOINT ["/root/entrypoint.sh"]
|
||||||
|
@ -14,6 +14,7 @@ import requests
|
|||||||
import subprocess
|
import subprocess
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
|
import sqlite3
|
||||||
|
|
||||||
#import sqlalchemy.exc
|
#import sqlalchemy.exc
|
||||||
#from sqlalchemy.dialects.sqlite import insert as sqlite_upsert
|
#from sqlalchemy.dialects.sqlite import insert as sqlite_upsert
|
||||||
|
Loading…
Reference in New Issue
Block a user