mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
commit
9696a8bd6a
2 changed files with 6 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.10
|
FROM alpine:3.11
|
||||||
|
|
||||||
LABEL \
|
LABEL \
|
||||||
org.label-schema.name="docker-bench-security" \
|
org.label-schema.name="docker-bench-security" \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.10
|
FROM alpine:3.11
|
||||||
|
|
||||||
LABEL \
|
LABEL \
|
||||||
org.label-schema.name="docker-bench-security" \
|
org.label-schema.name="docker-bench-security" \
|
||||||
|
@ -7,13 +7,12 @@ LABEL \
|
||||||
|
|
||||||
# Switch to the HTTPS endpoint for the apk repositories
|
# Switch to the HTTPS endpoint for the apk repositories
|
||||||
# https://github.com/gliderlabs/docker-alpine/issues/184
|
# https://github.com/gliderlabs/docker-alpine/issues/184
|
||||||
RUN \
|
RUN set -eux; \
|
||||||
sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories && \
|
sed -i 's!http://dl-cdn.alpinelinux.org/!https://alpine.global.ssl.fastly.net/!g' /etc/apk/repositories && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
iproute2 \
|
iproute2 \
|
||||||
docker \
|
docker-cli \
|
||||||
dumb-init && \
|
dumb-init
|
||||||
rm -rf /usr/bin/docker?*
|
|
||||||
|
|
||||||
COPY ./*.sh /usr/local/bin/
|
COPY ./*.sh /usr/local/bin/
|
||||||
COPY ./tests/*.sh /usr/local/bin/tests/
|
COPY ./tests/*.sh /usr/local/bin/tests/
|
||||||
|
|
Loading…
Reference in a new issue