prometheus-jitsi-meet-exporter/Dockerfile

29 lines
557 B
Docker
Raw Normal View History

FROM alpine:3.18.5 as builder
2021-03-12 11:15:13 +01:00
2020-03-21 20:53:50 +01:00
WORKDIR /go/src/github.com/systemli/prometheus-jitsi-meet-exporter
2021-03-12 11:15:13 +01:00
ENV USER=appuser
ENV UID=10001
RUN adduser \
--disabled-password \
--gecos "" \
--home "/nonexistent" \
--shell "/sbin/nologin" \
--no-create-home \
--uid "${UID}" \
"${USER}"
FROM scratch
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /etc/group /etc/group
COPY prometheus-jitsi-meet-exporter /prometheus-jitsi-meet-exporter
2021-03-12 11:15:13 +01:00
USER appuser:appuser
2020-03-21 20:53:50 +01:00
EXPOSE 9888
2021-03-12 11:15:13 +01:00
2020-03-21 20:53:50 +01:00
ENTRYPOINT ["/prometheus-jitsi-meet-exporter"]