mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -04:00 
			
		
		
		
	Remove curl after the usage (#6347)
This commit is contained in:
		
							parent
							
								
									65e05a06fb
								
							
						
					
					
						commit
						dafa5073cb
					
				| @ -14,7 +14,7 @@ WORKDIR /go/src/github.com/minio/ | |||||||
| COPY dockerscripts/docker-entrypoint.sh dockerscripts/healthcheck.sh /usr/bin/ | COPY dockerscripts/docker-entrypoint.sh dockerscripts/healthcheck.sh /usr/bin/ | ||||||
| 
 | 
 | ||||||
| RUN  \ | RUN  \ | ||||||
|      apk add --no-cache ca-certificates curl && \ |      apk add --no-cache ca-certificates && \ | ||||||
|      apk add --no-cache --virtual .build-deps git && \ |      apk add --no-cache --virtual .build-deps git && \ | ||||||
|      echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \ |      echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \ | ||||||
|      go get -v -d github.com/minio/minio && \ |      go get -v -d github.com/minio/minio && \ | ||||||
|  | |||||||
| @ -16,7 +16,7 @@ COPY dockerscripts/docker-entrypoint.sh dockerscripts/healthcheck.sh /usr/bin/ | |||||||
| COPY . /go/src/github.com/minio/minio | COPY . /go/src/github.com/minio/minio | ||||||
| 
 | 
 | ||||||
| RUN  \ | RUN  \ | ||||||
|      apk add --no-cache ca-certificates curl && \ |      apk add --no-cache ca-certificates && \ | ||||||
|      apk add --no-cache --virtual .build-deps git && \ |      apk add --no-cache --virtual .build-deps git && \ | ||||||
|      echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \ |      echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \ | ||||||
|      cd /go/src/github.com/minio/minio && \ |      cd /go/src/github.com/minio/minio && \ | ||||||
|  | |||||||
| @ -13,6 +13,7 @@ RUN \ | |||||||
|      apk add --no-cache --virtual .build-deps curl && \ |      apk add --no-cache --virtual .build-deps curl && \ | ||||||
|      echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \ |      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 && \ |      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/minio  && \ | ||||||
|      chmod +x /usr/bin/docker-entrypoint.sh && \ |      chmod +x /usr/bin/docker-entrypoint.sh && \ | ||||||
|      chmod +x /usr/bin/healthcheck.sh |      chmod +x /usr/bin/healthcheck.sh | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user