golang-build/Dockerfile

7 lines
269 B
Docker
Raw Permalink Normal View History

FROM golang:1.21-alpine
2022-08-03 11:50:16 +00:00
ENV GO111MODULE=on
RUN apk --no-cache add build-base git && \
go install github.com/magefile/mage@latest && \
mv /go/bin/mage /usr/local/go/bin # Since we're mounting the source we want to compile into /go, we will overlay the mage binary