Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
02d4b5ab13 | |||
d5ccea6fc3 |
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
ARG BUILDPLATFORM=linux/amd64
|
ARG BUILDPLATFORM=linux/amd64
|
||||||
|
|
||||||
ARG ALPINE_VERSION=3.14
|
ARG ALPINE_VERSION=3.14
|
||||||
ARG RUST_VERSION=latest
|
ARG RUST_VERSION=1.69-bullseye
|
||||||
|
|
||||||
FROM --platform=${BUILDPLATFORM} rust:${RUST_VERSION} AS base
|
FROM --platform=${BUILDPLATFORM} rust:${RUST_VERSION} AS base
|
||||||
WORKDIR /usr/src/prometheus_wireguard_exporter
|
WORKDIR /usr/src/prometheus_wireguard_exporter
|
||||||
|
@ -129,6 +129,7 @@ RUN adduser prometheus-wireguard-exporter -s /bin/sh -D -u 1000 1000 && \
|
||||||
chmod 0440 /etc/sudoers.d/prometheus-wireguard-exporter
|
chmod 0440 /etc/sudoers.d/prometheus-wireguard-exporter
|
||||||
RUN apk add --update -q --no-cache wireguard-tools-wg sudo
|
RUN apk add --update -q --no-cache wireguard-tools-wg sudo
|
||||||
USER prometheus-wireguard-exporter
|
USER prometheus-wireguard-exporter
|
||||||
|
#USER root
|
||||||
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/prometheus_wireguard_exporter"]
|
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/prometheus_wireguard_exporter"]
|
||||||
CMD [ "-a" ]
|
CMD [ "-a" ]
|
||||||
COPY --from=build --chown=prometheus-wireguard-exporter /tmp/binary ./prometheus_wireguard_exporter
|
COPY --from=build --chown=prometheus-wireguard-exporter /tmp/binary ./prometheus_wireguard_exporter
|
||||||
|
|
Loading…
Add table
Reference in a new issue