docker_config/mqtt/Dockerfile

16 lines
291 B
Docker
Raw Normal View History

2023-06-23 13:16:57 +02:00
FROM eclipse-mosquitto:2
arg UID=1000
arg GID=1000
arg USER=unicorn
RUN if [ ${USER} != "root" ]; then \
apk add shadow && \
groupadd -f -g ${GID} ${USER} && \
useradd -m -g ${USER} -u ${UID} ${USER}; \
fi
RUN chown -R ${USER}:${USER} /mosquitto
USER ${USER}