2019-02-28 09:07:49 +00:00
|
|
|
FROM debian:stretch-slim
|
2018-07-20 12:53:22 +00:00
|
|
|
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"]
|
|
|
|
|