15 lines
347 B
Docker
15 lines
347 B
Docker
FROM alpine:latest
|
|
#
|
|
ARG PUID=1000
|
|
ARG PGID=1000
|
|
#
|
|
RUN set -xe \
|
|
&& addgroup -g ${PGID} -S mosquitto \
|
|
&& adduser -u ${PUID} -G mosquitto -h /mosquitto/ -D mosquitto \
|
|
&& apk add --no-cache --purge -uU mosquitto mosquitto-libs mosquitto-clients
|
|
|
|
WORKDIR /workspace
|
|
COPY root/defaults/temp2mqtt /workspace
|
|
|
|
CMD [ "sh", "./temp2mqtt" ]
|