docker-mqtt/Dockerfile

7 lines
224 B
Docker

FROM alpine:3.12
RUN \
apk -U upgrade && apk add mosquitto mosquitto-clients openssl && \
echo "log_dest stdout" >/etc/mosquitto/mosquitto.conf
EXPOSE 8883
ENTRYPOINT ["mosquitto", "-c", "/etc/mosquitto/mosquitto.conf"]