1 2 3 4 5 6 7 8 9 10 11 12 13
FROM golang:1.16-alpine WORKDIR /src ADD go.mod /src ADD go.sum /src RUN go mod download ADD . /src RUN go build -o app . ENTRYPOINT ["/src/app"]