docker-mqtt/Dockerfile

9 lines
340 B
Docker
Raw Normal View History

2021-12-12 11:32:44 +00:00
FROM alpine:3.15
2021-10-01 13:40:56 +00:00
RUN \
apk -U upgrade && apk add mosquitto mosquitto-clients openssl && \
2021-10-01 14:17:04 +00:00
echo "log_dest stdout" >/etc/mosquitto/mosquitto.conf && \
echo "listener 1883" >>/etc/mosquitto/mosquitto.conf && \
echo "allow_anonymous true" >>/etc/mosquitto/mosquitto.conf
2019-08-12 16:10:59 +00:00
ENTRYPOINT ["mosquitto", "-c", "/etc/mosquitto/mosquitto.conf"]