diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-11-19 18:27:15 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-11-19 18:27:15 +0000 |
commit | d31d273073eec5220b4eb6cbeb576b3661ec6d7b (patch) | |
tree | 9167a85a77b597cd648f07eb8a36fc18ae3faaf1 /mqtt-client/Dockerfile | |
parent | 224c7385c9f2c0eafd7751bf8e100ab5d8c52345 (diff) | |
download | power.eda.gay-d31d273073eec5220b4eb6cbeb576b3661ec6d7b.tar.gz power.eda.gay-d31d273073eec5220b4eb6cbeb576b3661ec6d7b.zip |
Added python script to subscribe to MQTT topics and push them 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"] |