From bd8828ceac29cc57534cfa5a32fcb841e2a5742b Mon Sep 17 00:00:00 2001 From: Mathias Petermann Date: Mon, 29 Aug 2022 22:13:37 +0200 Subject: [PATCH] Remove switch ipaddress cmd line argument in docker --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a797cb..15dbca3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN go install golang.org/x/tools/cmd/stringer@latest && go generate ./... && go FROM alpine:latest -ENV SWITCH_IP_ADDRESS="192.168.10.10" LISTEN_ADDRESS="0.0.0.0" LISTEN_PORT="9452" +ENV LISTEN_ADDRESS="0.0.0.0" LISTEN_PORT="9452" RUN addgroup -S mystrom \ && adduser -S mystrom -G mystrom \ @@ -17,4 +17,4 @@ WORKDIR /app USER mystrom COPY --from=build /root/mystrom-exporter /app -CMD /app/mystrom-exporter -web.listen-address $LISTEN_ADDRESS:$LISTEN_PORT -switch.ip-address $SWITCH_IP_ADDRESS \ No newline at end of file +CMD /app/mystrom-exporter -web.listen-address $LISTEN_ADDRESS:$LISTEN_PORT \ No newline at end of file