mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-30 11:15:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			395 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			395 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM linuxkit/alpine:9bcf61f605ef0ce36cc94d59b8eac307862de6e1 AS mirror
 | |
| 
 | |
| RUN apk add --no-cache go musl-dev
 | |
| ENV GOPATH=/go PATH=$PATH:/go/bin
 | |
| 
 | |
| COPY main.go /go/src/sysfs/
 | |
| RUN go-compile.sh /go/src/sysfs
 | |
| 
 | |
| FROM scratch
 | |
| ENTRYPOINT []
 | |
| CMD []
 | |
| WORKDIR /
 | |
| COPY --from=mirror /go/bin/sysfs /usr/bin/sysfs
 | |
| COPY etc/ /etc/
 | |
| CMD ["/usr/bin/sysfs"]
 | |
| LABEL org.mobyproject.config='{"net": "new", "ipc": "new"}'
 |