mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
Merge pull request #386 from J0WI/enhance-install
Enhance installation of docker cli
This commit is contained in:
commit
c8a7e87132
1 changed files with 4 additions and 5 deletions
|
@ -7,13 +7,12 @@ LABEL \
|
|||
|
||||
# Switch to the HTTPS endpoint for the apk repositories
|
||||
# https://github.com/gliderlabs/docker-alpine/issues/184
|
||||
RUN \
|
||||
sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories && \
|
||||
RUN set -eux; \
|
||||
sed -i 's!http://dl-cdn.alpinelinux.org/!https://alpine.global.ssl.fastly.net/!g' /etc/apk/repositories && \
|
||||
apk add --no-cache \
|
||||
iproute2 \
|
||||
docker \
|
||||
dumb-init && \
|
||||
rm -rf /usr/bin/docker?*
|
||||
docker-cli \
|
||||
dumb-init
|
||||
|
||||
COPY ./*.sh /usr/local/bin/
|
||||
COPY ./tests/*.sh /usr/local/bin/tests/
|
||||
|
|
Loading…
Reference in a new issue