diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-11-19 18:41:43 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-11-19 18:41:43 +0000 |
commit | 1bb86baabe93c387781836e3b401a472cd044475 (patch) | |
tree | d9482ac33a4a16df027c912273dfbafd038f1d01 /mqtt-client/Dockerfile | |
parent | 450b5ce0582773f4684dfc197f04765b81f429c9 (diff) | |
download | power.eda.gay-1bb86baabe93c387781836e3b401a472cd044475.tar.gz power.eda.gay-1bb86baabe93c387781836e3b401a472cd044475.zip |
Added python MQTT client script that pushes readings to influxdb
Diffstat (limited to 'mqtt-client/Dockerfile')
-rw-r--r-- | mqtt-client/Dockerfile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mqtt-client/Dockerfile b/mqtt-client/Dockerfile new file mode 100644 index 0000000..ad59f9b --- /dev/null +++ b/mqtt-client/Dockerfile @@ -0,0 +1,10 @@ +FROM debian:11-slim +ENV TZ=Europe/London +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +RUN apt-get update -y +RUN apt-get install -y python3-pip iputils-ping +COPY . /app +WORKDIR /app +RUN pip3 install -r requirements.txt +ENTRYPOINT ["python3"] +CMD ["mqtt-client.py"] |