Drop curl dependency in Dockerfile
Since Alpine v3.7, the built-in wget can handle https connection, there is no need to maintain an additional curl dependency in build process.
This commit is contained in:
1 parent
612ffd8e17
commit
5ed060c874
1 file changed
+2
-4
+2
-4
@@ -2,13 +2,11 @@ FROM alpine:3.10
|
||||
|
||||
ENV DOCKER_VERSION 17.09.0-ce
|
||||
|
||||
# We get curl so that we can avoid a separate ADD to fetch the Docker binary, and then we'll remove it
|
||||
RUN apk --no-cache add bash curl \
|
||||
RUN apk --no-cache add bash \
|
||||
&& cd /tmp/ \
|
||||
&& curl -sSL -O https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz \
|
||||
&& wget -q https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz \
|
||||
&& tar zxf docker-${DOCKER_VERSION}.tgz \
|
||||
&& mv $(find -name 'docker' -type f) /usr/local/bin/ \
|
||||
&& apk del curl \
|
||||
&& rm -rf /tmp/*
|
||||
|
||||
COPY ./docker-gc /docker-gc
|
||||
|
||||
Reference in new issue
Block a user