File Dockerfile of Package mqtt-actions-image
#!BuildTag: mqtt-actions:%PKG_VERSION%
#!BuildTag: mqtt-actions:latest
#!BuildTag: mqtt-actions:%PKG_VERSION%-%RELEASE%
#!UseOBSRepositories
FROM opensuse/tumbleweed AS build-stage
WORKDIR /src
RUN zypper --non-interactive install --no-recommends mqtt-actions ca-certificates && zypper clean
FROM opensuse/busybox:latest
LABEL maintainer="Thorsten Kukuk <kukuk@thkukuk.de>"
# labelprefix=de.thkukuk.mqtt-actions
LABEL org.opencontainers.image.title="MQTT actions"
LABEL org.opencontainers.image.description="The mqtt-actions daemon listens on MQTT topics and creates new ones if a matching one was seen."
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.version="%PKG_VERSION%-%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
# endlabelprefix
ENV MQTT_USER username
ENV MQTT_PASSWORD password
COPY --from=build-stage /etc/ssl /etc/ssl
COPY --from=build-stage /var/lib/ca-certificates /var/lib/ca-certificates
COPY --from=build-stage /usr/sbin/mqtt-actions /usr/sbin/
COPY entrypoint.sh /
RUN chmod 755 /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "/usr/sbin/mqtt-actions" ]