mqtt-logger/Dockerfile
Thomas Klaehn 88ebe37d60 mqtt-logger: Switch to Debian stretch sim
Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
2019-02-28 10:07:49 +01:00

21 lines
449 B
Docker

FROM debian:stretch-slim
RUN apt-get update && apt-get install -y python python-pip mosquitto git
# Install paho-mqtt
RUN yes | pip install paho-mqtt
# Install paho-mqtt wrapper
RUN git clone https://git.blackfinn.de/python/mqtt.git && \
cd mqtt && \
./setup.py install && \
cd .. && \
rm -rf mqtt
# Install mqtt-logger
RUN git clone https://git.blackfinn.de/python/mqtt_logger.git
COPY run.sh /bin/
ENTRYPOINT ["/bin/run.sh"]