mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 00:13:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			323 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			323 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM linuxkit/alpine:daed76b8f1d28cdeeee215a95b9671c682a405dc AS mirror
 | |
| 
 | |
| RUN apk add --no-cache go musl-dev linux-headers
 | |
| ENV GOPATH=/go PATH=$PATH:/go/bin
 | |
| 
 | |
| COPY .  /go/src/kmsg/
 | |
| RUN go-compile.sh /go/src/kmsg
 | |
| 
 | |
| FROM scratch
 | |
| ENTRYPOINT []
 | |
| CMD []
 | |
| WORKDIR /
 | |
| COPY --from=mirror /go/bin/kmsg /usr/bin/kmsg
 | |
| CMD ["/usr/bin/kmsg"]
 |