mirror of https://github.com/fluxcd/flux2.git
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			540 B
		
	
	
	
		
			Docker
		
	
			
		
		
	
	
			21 lines
		
	
	
		
			540 B
		
	
	
	
		
			Docker
		
	
| FROM alpine:3.19 as builder
 | |
| 
 | |
| RUN apk add --no-cache ca-certificates curl
 | |
| 
 | |
| ARG ARCH=linux/amd64
 | |
| ARG KUBECTL_VER=1.28.4
 | |
| 
 | |
| RUN curl -sL https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VER}/bin/${ARCH}/kubectl \
 | |
|     -o /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl && \
 | |
|     kubectl version --client=true
 | |
| 
 | |
| FROM alpine:3.19 as flux-cli
 | |
| 
 | |
| RUN apk add --no-cache ca-certificates
 | |
| 
 | |
| COPY --from=builder /usr/local/bin/kubectl /usr/local/bin/
 | |
| COPY --chmod=755 flux /usr/local/bin/
 | |
| 
 | |
| USER 65534:65534
 | |
| ENTRYPOINT [ "flux" ]
 |