Run as root to access wg

This commit is contained in:
Quentin McGaw 2020-08-09 18:06:23 -04:00
parent 5cd14e0aa7
commit 98c251bba8

View File

@ -24,7 +24,5 @@ RUN cargo install --target ${ARCH}-unknown-linux-musl --path .
FROM alpine:${ALPINE_VERSION}
EXPOSE 9586/tcp
RUN apk add --update -q --no-cache wireguard-tools-wg
COPY --from=build --chown=1000 /usr/local/cargo/bin/prometheus_wireguard_exporter /usr/local/bin/prometheus_wireguard_exporter
COPY --from=build /usr/local/cargo/bin/prometheus_wireguard_exporter /usr/local/bin/prometheus_wireguard_exporter
ENTRYPOINT [ "prometheus_wireguard_exporter" ]
CMD [ "-h" ]
USER 1000