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>
19 lines
411 B
Docker
19 lines
411 B
Docker
FROM golang:1.16 as build
|
|
|
|
ARG version=master
|
|
|
|
RUN 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 && \
|
|
cp bin/wtfutil /usr/local/bin/
|