adding a few more vars, setting collection to 60 secs

This commit is contained in:
2023-09-25 22:59:36 -04:00
parent 28df368156
commit 3c9149f7c0
8 changed files with 117 additions and 3 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
# Stage 1
FROM alpine:latest as build
RUN mkdir -p /opt/prometheus-plex-exporter/public/built && \
mkdir /opt/prometheus-plex-exporter/config && \
adduser -S prom && addgroup -S prom
WORKDIR /opt/prometheus-plex-exporter
COPY LICENSE README.md /opt/prometheus-plex-exporter/config/
COPY bin/prometheus-plex-exporter /opt/prometheus-plex-exporter/prometheus-plex-exporter
RUN chmod +x /opt/prometheus-plex-exporter/prometheus-plex-exporter && \
chown -R prom:prom /opt/prometheus-plex-exporter/
# Stage 2
FROM scratch
COPY --from=build / /
LABEL Author="deranjer"
LABEL name="prometheus-plex-exporter"
EXPOSE 9545
WORKDIR /opt/prometheus-plex-exporter
ENTRYPOINT [ "/opt/prometheus-plex-exporter/prometheus-plex-exporter" ]
#docker build -t deranjer/goedms:latest .