From 2521d596d1ad04ca505b112e398ab87a6aec2c17 Mon Sep 17 00:00:00 2001 From: Maik Ellerbrock Date: Thu, 14 Dec 2017 02:46:48 +0100 Subject: [PATCH] fix(dockerfile): copy dockerfile to distro --- distros/Dockerfile.alpine | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/distros/Dockerfile.alpine b/distros/Dockerfile.alpine index 1e398c7..b8a6f18 100644 --- a/distros/Dockerfile.alpine +++ b/distros/Dockerfile.alpine @@ -5,9 +5,6 @@ LABEL \ org.label-schema.url="https://dockerbench.com" \ org.label-schema.vcs-url="https://github.com/docker/docker-bench-security.git" -COPY ./*.sh /usr/local/bin/ -COPY ./tests/*.sh /usr/local/bin/tests/ - # Switch to the HTTPS endpoint for the apk repositories # https://github.com/gliderlabs/docker-alpine/issues/184 RUN \ @@ -17,6 +14,11 @@ RUN \ dumb-init && \ rm -rf /usr/bin/docker?* +COPY ./*.sh /usr/local/bin/ +COPY ./tests/*.sh /usr/local/bin/tests/ + +HEALTHCHECK CMD exit 0 + WORKDIR /usr/local/bin ENTRYPOINT [ "/usr/bin/dumb-init", "docker-bench-security.sh" ]