2024-06-01 17:40:56 +00:00
|
|
|
FROM debian:bookworm
|
|
|
|
MAINTAINER yohan <783b8c87@scimetis.net>
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
ENV TZ Europe/Paris
|
2024-06-02 09:42:44 +00:00
|
|
|
RUN apt-get update && apt-get -y install python3-pip python3-requests python3-yaml python3-flask-sqlalchemy python3-flask-migrate
|
2024-06-01 17:40:56 +00:00
|
|
|
ENV PIP_BREAK_SYSTEM_PACKAGES 1
|
|
|
|
RUN pip install flask-restx
|
|
|
|
WORKDIR /root
|
|
|
|
COPY thermostat.py /root/
|
|
|
|
COPY migrate_db.sh /root/
|
|
|
|
COPY entrypoint.sh /root/
|
2024-06-01 21:42:54 +00:00
|
|
|
ENV FLASK_APP thermostat.py
|
2024-06-01 17:40:56 +00:00
|
|
|
ENTRYPOINT ["/root/entrypoint.sh"]
|