first commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-05-15 15:57:21 +02:00
parent a872c40919
commit b94fbc891a
3 changed files with 19 additions and 11 deletions

View File

@ -1,5 +1,7 @@
# FROM alpine:latest
FROM alpine:3.9
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"
@ -14,7 +16,13 @@ RUN set -xe \
&& 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
WORKDIR /config
# COPY root/defaults/temp2mqtt /config
CMD [ "sh", "./temp2mqtt" ]
# CMD [ "sh", "./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"]