2017-12-11 00:56:49 +01:00
|
|
|
FROM alpine:3.7
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2017-12-11 00:56:49 +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-12-11 00:56:49 +01:00
|
|
|
COPY ./*.sh /usr/local/bin/
|
|
|
|
COPY ./tests/*.sh /usr/local/bin/tests/
|
2017-12-06 00:56:27 +01:00
|
|
|
|
2017-12-11 00:56:49 +01:00
|
|
|
# Switch to the HTTPS endpoint for the apk repositories
|
|
|
|
# https://github.com/gliderlabs/docker-alpine/issues/184
|
2017-01-22 01:01:53 +01:00
|
|
|
RUN \
|
2017-12-11 00:56:49 +01:00
|
|
|
sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories && \
|
2017-01-22 01:01:53 +01:00
|
|
|
apk add --no-cache \
|
|
|
|
docker \
|
|
|
|
dumb-init && \
|
2017-12-11 00:56:49 +01:00
|
|
|
rm -rf /usr/bin/docker?*
|
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
|
|
|
|