From 117cc98cdc4904ce2a9928102ceb96d66fd084f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Bru=CC=88dgam?= Date: Tue, 15 Feb 2022 09:35:11 +0100 Subject: [PATCH] Fix Hadolint DL3025: Use arguments JSON notation for CMD and ENTRYPOINT arguments --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef48bf2..e5a85a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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}" ]