From dafa5073cb3dce6be039f5b27733ce71ab1b8fea Mon Sep 17 00:00:00 2001 From: Manjunath A Kumatagi Date: Thu, 23 Aug 2018 23:18:29 +0530 Subject: [PATCH] Remove curl after the usage (#6347) --- Dockerfile | 2 +- Dockerfile.dev | 2 +- Dockerfile.release | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc9e5b69b..6358f8f79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ WORKDIR /go/src/github.com/minio/ COPY dockerscripts/docker-entrypoint.sh dockerscripts/healthcheck.sh /usr/bin/ RUN \ - apk add --no-cache ca-certificates curl && \ + apk add --no-cache ca-certificates && \ apk add --no-cache --virtual .build-deps git && \ echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \ go get -v -d github.com/minio/minio && \ diff --git a/Dockerfile.dev b/Dockerfile.dev index 8103ba306..40b99cf17 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -16,7 +16,7 @@ COPY dockerscripts/docker-entrypoint.sh dockerscripts/healthcheck.sh /usr/bin/ COPY . /go/src/github.com/minio/minio RUN \ - apk add --no-cache ca-certificates curl && \ + apk add --no-cache ca-certificates && \ apk add --no-cache --virtual .build-deps git && \ echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \ cd /go/src/github.com/minio/minio && \ diff --git a/Dockerfile.release b/Dockerfile.release index a2829b2ba..0a4f911a7 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -13,6 +13,7 @@ RUN \ apk add --no-cache --virtual .build-deps curl && \ echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \ curl https://dl.minio.io/server/minio/release/linux-amd64/minio > /usr/bin/minio && \ + apk del .build-deps && \ chmod +x /usr/bin/minio && \ chmod +x /usr/bin/docker-entrypoint.sh && \ chmod +x /usr/bin/healthcheck.sh