datalogger/mqttinflux/Dockerfile

10 lines
146 B
Docker
Raw Permalink Normal View History

2021-02-19 11:06:59 +00:00
FROM python:slim
ENV MQTT_PORT 1883
ENV INFLUX_PORT 8086
RUN pip install influxdb paho-mqtt
COPY main.py /main.py
CMD [ "python", "/main.py" ]