docker-sensors-polling/Dockerfile

14 lines
604 B
Docker
Raw Normal View History

2024-06-08 19:22:27 +00:00
FROM debian:bookworm
MAINTAINER yohan <783b8c87@scimetis.net>
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Europe/Paris
2024-06-09 20:36:43 +00:00
RUN apt-get update && apt-get -y install curl gunicorn sqlite3 python3-requests python3-yaml python3-flask python3-serial ow-shell; rm -rf /var/lib/apt/lists/*
2024-06-08 19:22:27 +00:00
WORKDIR /root
2024-06-09 07:40:26 +00:00
RUN curl -s -o YoctoLib.cmdline.24497.tar.gz "https://cloud.scimetis.net/s/y7WengZWJpYnGpr/download"
RUN tar xzvf YoctoLib.cmdline.24497.tar.gz
2024-06-08 19:22:27 +00:00
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"]