2017-05-29 12:03:04 +02:00
|
|
|
FROM alpine:3.6
|
2015-06-23 22:46:03 +02:00
|
|
|
|
2016-12-20 11:41:46 +01:00
|
|
|
LABEL org.label-schema.name="docker-bench-security" \
|
|
|
|
org.label-schema.url="https://dockerbench.com" \
|
|
|
|
org.label-schema.vcs-url="https://github.com/docker/docker-bench-security.git"
|
2015-12-22 20:46:56 +01:00
|
|
|
|
2017-01-19 20:46:33 +01:00
|
|
|
RUN \
|
2017-01-31 14:31:28 +01:00
|
|
|
apk upgrade --no-cache && \
|
2017-01-19 20:46:33 +01:00
|
|
|
apk add --no-cache \
|
|
|
|
docker \
|
2017-01-26 11:58:12 +01:00
|
|
|
dumb-init && \
|
|
|
|
rm -rf /usr/bin/docker-* /usr/bin/dockerd && \
|
|
|
|
mkdir /usr/local/bin/tests
|
|
|
|
|
|
|
|
COPY ./*.sh /usr/local/bin/
|
|
|
|
|
|
|
|
COPY ./tests/*.sh /usr/local/bin/tests/
|
|
|
|
|
2017-01-20 19:06:06 +01:00
|
|
|
WORKDIR /usr/local/bin
|
|
|
|
|
2017-05-29 12:03:04 +02:00
|
|
|
HEALTHCHECK CMD exit 0
|
|
|
|
|
2017-01-19 20:46:33 +01:00
|
|
|
ENTRYPOINT [ "/usr/bin/dumb-init", "docker-bench-security.sh" ]
|
2017-01-20 19:06:06 +01:00
|
|
|
|