Skip to content

Commit 5e9e92a

Browse files
committed
feat(builder): add docker download checksum
1 parent bc773ea commit 5e9e92a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

builder/rootfs/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ RUN apk add --update-cache \
2626
&& rm -rf /var/cache/apk/*
2727

2828
# the docker package in alpine disables aufs and devicemapper
29-
RUN curl -sSL https://get.docker.com/builds/Linux/x86_64/docker-1.8.3 -o /usr/bin/docker && \
30-
chmod +x /usr/bin/docker
29+
ENV DOCKER_BUCKET get.docker.com
30+
ENV DOCKER_VERSION 1.8.3
31+
ENV DOCKER_SHA256 f024bc65c45a3778cf07213d26016075e8172de8f6e4b5702bedde06c241650f
32+
RUN curl -sSL "https://${DOCKER_BUCKET}/builds/Linux/x86_64/docker-$DOCKER_VERSION" -o /usr/bin/docker \
33+
&& echo "${DOCKER_SHA256} /usr/bin/docker" | sha256sum -c - \
34+
&& chmod +x /usr/bin/docker
3135

3236
# configure ssh server
3337
RUN mkdir -p /var/run/sshd && rm -rf /etc/ssh/ssh_host*

0 commit comments

Comments
 (0)