mirror of
				https://github.com/taigrr/wtf
				synced 2025-01-18 04:03:14 -08:00 
			
		
		
		
	This commit updates the used Go version to 1.16. The biggest benefit from this is that with Go 1.16 (and the latest Goreleaser) support for Apple Silicon is available, therefore wtf would work on Apple Silicon. Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
		
			
				
	
	
		
			27 lines
		
	
	
		
			582 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			582 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM golang:1.16-alpine as build
 | |
| 
 | |
| ARG version=master
 | |
| 
 | |
| RUN apk add git make ncurses && \
 | |
|     git clone https://github.com/wtfutil/wtf.git $GOPATH/src/github.com/wtfutil/wtf && \
 | |
|     cd $GOPATH/src/github.com/wtfutil/wtf && \
 | |
|     git checkout $version
 | |
| 
 | |
| ENV GOPROXY=https://proxy.golang.org,direct
 | |
| ENV GO111MODULE=on
 | |
| ENV GOSUMDB=off
 | |
| 
 | |
| WORKDIR $GOPATH/src/github.com/wtfutil/wtf
 | |
| 
 | |
| ENV PATH=$PATH:./bin
 | |
| 
 | |
| RUN make build
 | |
| 
 | |
| FROM alpine
 | |
| 
 | |
| COPY --from=build /go/src/github.com/wtfutil/wtf/bin/wtfutil /usr/local/bin/
 | |
| RUN adduser -h /config -DG users -u 20000 wtf
 | |
| 
 | |
| USER wtf
 | |
| ENTRYPOINT ["wtfutil"]
 |