Define ENTRYPOINT according to exec format

This commit is contained in:
Lukas Wolfsteiner
2021-02-15 03:07:31 +01:00
committed by GitHub
parent 9e1b95bad0
commit 238b68fbd3

View File

@@ -11,5 +11,3 @@ COPY --from=builder /go/bin/fritzbox_exporter .
COPY metrics.json metrics-lua.json ./
EXPOSE 9042
ENTRYPOINT [ "./fritzbox_exporter" ]
CMD ./fritzbox_exporter -username $USERNAME -password $PASSWORD
ENTRYPOINT ./fritzbox_exporter -gateway-url ${GWURL} -password ${PASSWORD} -username ${USERNAME} -listen-address ${LISTEN_ADDRESS}