From 1bb86baabe93c387781836e3b401a472cd044475 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sun, 19 Nov 2023 18:41:43 +0000 Subject: Added python MQTT client script that pushes readings to influxdb --- mqtt-client/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 mqtt-client/Dockerfile (limited to 'mqtt-client/Dockerfile') 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"] -- cgit v1.2.3