File tree Expand file tree Collapse file tree 2 files changed +26
-18
lines changed
Expand file tree Collapse file tree 2 files changed +26
-18
lines changed Original file line number Diff line number Diff line change @@ -4,20 +4,24 @@ LABEL org.label-schema.name="docker-bench-security" \
44 org.label-schema.url="https://dockerbench.com" \
55 org.label-schema.vcs-url="https://github.com/docker/docker-bench-security.git"
66
7- ENV VERSION 1.10.0
7+ ENV VERSION 1.12.6
8+ ENV SHA256 cadc6025c841e034506703a06cf54204e51d0cadfae4bae62628ac648d82efdd
89
910WORKDIR /usr/bin
1011
1112RUN apk update && \
1213 apk upgrade && \
13- apk --update add curl && \
14- curl -sS https://get.docker.com/builds/Linux/x86_64/docker-$VERSION > docker-$VERSION && \
15- curl -sS https://get.docker.com/builds/Linux/x86_64/docker-$VERSION.sha256 > docker-$VERSION.sha256 && \
16- sha256sum -c docker-$VERSION.sha256 && \
17- ln -s docker-$VERSION docker && \
18- chmod u+x docker-$VERSION && \
19- apk del curl && \
20- rm -rf /var/cache/apk/*
14+ apk --update add coreutils wget ca-certificates && \
15+ wget https://get.docker.com/builds/Linux/x86_64/docker-$VERSION.tgz && \
16+ wget https://get.docker.com/builds/Linux/x86_64/docker-$VERSION.tgz.sha256 && \
17+ sha256sum -c docker-$VERSION.tgz.sha256 && \
18+ echo "$SHA256 docker-$VERSION.tgz" | sha256sum -c - && \
19+ tar -xzvf docker-$VERSION.tgz -C /tmp && \
20+ mv /tmp/docker/docker . && \
21+ chmod u+x docker* && \
22+ rm -rf /tmp/docker* && \
23+ apk del wget ca-certificates && \
24+ rm -rf /var/cache/apk/* docker-$VERSION.tgz docker-$VERSION.tgz.sha256
2125
2226RUN mkdir /docker-bench-security
2327
Original file line number Diff line number Diff line change @@ -4,20 +4,24 @@ LABEL org.label-schema.name="docker-bench-security" \
44 org.label-schema.url="https://dockerbench.com" \
55 org.label-schema.vcs-url="https://github.com/docker/docker-bench-security.git"
66
7- ENV VERSION 1.10.0
7+ ENV VERSION 1.12.6
8+ ENV SHA256 cadc6025c841e034506703a06cf54204e51d0cadfae4bae62628ac648d82efdd
89
910WORKDIR /usr/bin
1011
1112RUN apk update && \
1213 apk upgrade && \
13- apk --update add curl && \
14- curl -sS https://get.docker.com/builds/Linux/x86_64/docker-$VERSION > docker-$VERSION && \
15- curl -sS https://get.docker.com/builds/Linux/x86_64/docker-$VERSION.sha256 > docker-$VERSION.sha256 && \
16- sha256sum -c docker-$VERSION.sha256 && \
17- ln -s docker-$VERSION docker && \
18- chmod u+x docker-$VERSION && \
19- apk del curl && \
20- rm -rf /var/cache/apk/*
14+ apk --update add coreutils wget ca-certificates && \
15+ wget https://get.docker.com/builds/Linux/x86_64/docker-$VERSION.tgz && \
16+ wget https://get.docker.com/builds/Linux/x86_64/docker-$VERSION.tgz.sha256 && \
17+ sha256sum -c docker-$VERSION.tgz.sha256 && \
18+ echo "$SHA256 docker-$VERSION.tgz" | sha256sum -c - && \
19+ tar -xzvf docker-$VERSION.tgz -C /tmp && \
20+ mv /tmp/docker/docker . && \
21+ chmod u+x docker* && \
22+ rm -rf /tmp/docker* && \
23+ apk del wget ca-certificates && \
24+ rm -rf /var/cache/apk/* docker-$VERSION.tgz docker-$VERSION.tgz.sha256
2125
2226RUN mkdir /docker-bench-security
2327
You can’t perform that action at this time.
0 commit comments