FROM alpine as donor
RUN apk add tzdata
FROM scratch
COPY mqtt2prometheus /mqtt2prometheus
# Copy CA Certificates
COPY --from=donor /etc/ssl/certs /etc/ssl/certs
# Copy Time Zone Data
COPY --from=donor /usr/share/zoneinfo /usr/share/zoneinfo
ENTRYPOINT ["/mqtt2prometheus"]
