Skip to content

Commit

Permalink
Remove switch ipaddress cmd line argument in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
peschmae committed Aug 29, 2022
1 parent 81fcbc1 commit bd8828c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
CMD /app/mystrom-exporter -web.listen-address $LISTEN_ADDRESS:$LISTEN_PORT

0 comments on commit bd8828c

Please # to comment.