2022-04-08 09:02:00 +02:00
|
|
|
FROM alpine:3.15.4 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
|
2021-09-14 11:37:38 +02:00
|
|
|
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"]
|