mosquitto-with-auth/Dockerfile

30 lines
677 B
Docker
Raw Normal View History

2019-06-11 15:51:39 +00:00
FROM debian:latest
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
LABEL ImageName="registry.gitlab.com/wolutator/mosquitto-with-auth"
2019-06-12 12:42:50 +02:00
LABEL AlternativeImageName="wollud1969/mosquitto-with-auth"
2019-06-11 15:51:39 +00:00
ARG MOSQ_USER="mosquitto"
ARG MOSQ_UID="1883"
ARG MOSQ_GID="1883"
2019-06-11 15:51:39 +00:00
RUN \
apt update && \
apt install -y mariadb-client openssl libwebsockets8 && \
groupadd -r -g $MOSQ_GID $MOSQ_USER && \
useradd -m -r -u $MOSQ_UID -g $MOSQ_USER $MOSQ_USER
2019-06-11 15:51:39 +00:00
2019-06-11 15:58:33 +00:00
COPY opt/ /opt
COPY etc/ /opt/etc
2019-06-11 15:51:39 +00:00
2019-06-11 16:42:24 +00:00
VOLUME /opt/etc
EXPOSE 1883/tcp
EXPOSE 8883/tcp
EXPOSE 9001/tcp
2019-06-11 22:59:33 +02:00
WORKDIR /opt
2019-06-11 23:03:36 +02:00
CMD ["env", "LD_LIBRARY_PATH=/opt/lib", "/opt/sbin/mosquitto", "-c", "/opt/etc/mosquitto/mosquitto.conf"]
2019-06-11 22:59:33 +02:00