28 lines
929 B
Plaintext
28 lines
929 B
Plaintext
FROM alpine:latest
|
|
|
|
ARG S6_OVERLAY_VERSION=3.1.0.1
|
|
|
|
|
|
LABEL org.opencontainers.image.source="https://git.sthope.dev/sthope/DockerContainer-randomPwd"
|
|
LABEL Maintainer="Sthope"
|
|
LABEL Description="Send CPU Temp via MQTT"
|
|
LABEL version="1.0.0"
|
|
|
|
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 /config
|
|
# COPY root/defaults/temp2mqtt /config
|
|
|
|
CMD [ "sh", "/config/temp2mqtt" ]
|
|
|
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
|
|
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
|
|
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz /tmp
|
|
RUN tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
|
|
ENTRYPOINT ["/init"] |