From cee1e59860c8d3a51f6dc8b07627c785244a1447 Mon Sep 17 00:00:00 2001 From: will Farrell Date: Wed, 22 Feb 2017 16:14:30 -0700 Subject: [PATCH] force Healthcheck to `healthy` This will prevent: ```bash # Docker Bench for Security v1.3.0 [WARN] 4.6 - Add HEALTHCHECK instruction to the container image [WARN] * No Healthcheck found: [docker-bench-security:latest] ``` Signed-off-by: will Farrell --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 59aa375..7399fd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,5 +18,7 @@ COPY ./tests/*.sh /usr/local/bin/tests/ WORKDIR /usr/local/bin +HEALTHCHECK CMD exit 0 + ENTRYPOINT [ "/usr/bin/dumb-init", "docker-bench-security.sh" ]