15 lines
518 B
Docker
15 lines
518 B
Docker
FROM debian:bookworm
|
|
MAINTAINER yohan <783b8c87@scimetis.net>
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV TZ Europe/Paris
|
|
RUN apt-get update && apt-get -y install gunicorn sqlite3 python3-pip python3-requests python3-yaml python3-flask python3-serial udev
|
|
ENV PIP_BREAK_SYSTEM_PACKAGES 1
|
|
RUN pip install teleinfo
|
|
WORKDIR /root
|
|
COPY find_ttyUSB.sh /root/
|
|
COPY read_one-wire_sensor.py /root/
|
|
COPY read_teleinfo.py /root/
|
|
COPY read_yocto_sensor.py /root/
|
|
COPY sensors-polling.py /root/
|
|
ENTRYPOINT ["/root/sensors-polling.py"]
|