mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 23:06:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			451 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			451 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM linuxkit/alpine:33063834cf72d563cd8703467836aaa2f2b5a300 AS build
 | |
| 
 | |
| RUN apk add --no-cache go musl-dev
 | |
| ENV GOPATH=/go PATH=$PATH:/go/bin
 | |
| # Hack to work around an issue with go on arm64 requiring gcc
 | |
| RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true
 | |
| 
 | |
| COPY . /go/src/logwrite/
 | |
| RUN go-compile.sh /go/src/logwrite
 | |
| 
 | |
| FROM scratch
 | |
| ENTRYPOINT []
 | |
| CMD []
 | |
| WORKDIR /
 | |
| COPY --from=build /go/bin/logwrite usr/bin/logwrite
 | |
| CMD ["/usr/bin/logwrite"]
 |