2019-08-14 14:26:00 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
RUN apk update && apk upgrade
|
|
|
|
|
|
|
|
RUN apk add --update --no-cache python3 py3-pip py3-setuptools mosquitto git && \
|
|
|
|
if [ ! -e /usr/bin/python ]; then ln -f /usr/bin/python3 /usr/bin/python ; fi && \
|
|
|
|
if [ ! -e /usr/bin/pip ]; then ln -f /usr/bin/pip3 /usr/bin/pip ; fi
|
2018-07-20 12:53:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Install paho-mqtt wrapper
|
|
|
|
RUN git clone https://git.blackfinn.de/python/mqtt.git && \
|
2019-08-14 14:26:00 +00:00
|
|
|
cd mqtt && ./setup.py install && \
|
|
|
|
rm -rf mqtt
|
2018-07-20 12:53:22 +00:00
|
|
|
|
|
|
|
# Install mqtt-logger
|
|
|
|
RUN git clone https://git.blackfinn.de/python/mqtt_logger.git
|
|
|
|
|
|
|
|
COPY run.sh /bin/
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/run.sh"]
|
|
|
|
|