2017-01-11 09:26:28 +01:00
|
|
|
FROM alpine:3.5
|
2015-05-11 06:08:28 +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-22 01:01:53 +01:00
|
|
|
RUN \
|
2017-01-31 14:29:57 +01:00
|
|
|
apk upgrade --no-cache && \
|
2017-01-22 01:01:53 +01:00
|
|
|
apk add --no-cache \
|
|
|
|
docker \
|
|
|
|
dumb-init && \
|
2017-01-25 10:55:02 +01:00
|
|
|
rm -rf /usr/bin/docker-* /usr/bin/dockerd && \
|
2017-01-22 01:01:53 +01:00
|
|
|
mkdir /usr/local/bin/tests
|
2015-07-01 21:00:51 +02:00
|
|
|
|
2017-01-22 01:01:53 +01:00
|
|
|
COPY ./*.sh /usr/local/bin/
|
2015-12-22 20:46:56 +01:00
|
|
|
|
2017-01-22 01:01:53 +01:00
|
|
|
COPY ./tests/*.sh /usr/local/bin/tests/
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2017-01-22 01:01:53 +01:00
|
|
|
WORKDIR /usr/local/bin
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2017-01-22 01:01:53 +01:00
|
|
|
ENTRYPOINT [ "/usr/bin/dumb-init", "docker-bench-security.sh" ]
|
2015-05-11 06:08:28 +02:00
|
|
|
|