Fix Hadolint DL3025: Use arguments JSON notation for CMD and ENTRYPOINT arguments

This commit is contained in:
Paul Brüdgam
2022-02-15 09:35:11 +01:00
parent 290828f46d
commit 117cc98cdc

View File

@@ -33,8 +33,4 @@ COPY --chown=fritzbox:fritzbox --from=builder /app /app
EXPOSE 9042
ENTRYPOINT [ "fritzbox_exporter" ]
CMD ./fritzbox_exporter \
-username ${USERNAME} \
-password ${PASSWORD} \
-gateway-url ${GATEWAY_URL} \
-listen-address ${LISTEN_ADDRESS}
CMD [ "-username", "${USERNAME}", "-password", "${PASSWORD}", "-gateway-url", "${GATEWAY_URL}", "-listen-address", "${LISTEN_ADDRESS}" ]