Open Shitaibin opened 4 years ago
https://lessisbetter.site/2020/11/10/dockerfile-go/
模板12345678910111213141516171819202122232425262728# build时设置版本 --build-arg GO_VERSION=1.13,默认为go1.15ARG GO_VERSION=1.15FROM golang:${GO_VERSION} AS builderENV GOPROXY="https://goproxy.cn"ENV
https://lessisbetter.site/2020/11/10/dockerfile-go/
模板12345678910111213141516171819202122232425262728# build时设置版本 --build-arg GO_VERSION=1.13,默认为go1.15ARG GO_VERSION=1.15FROM golang:${GO_VERSION} AS builderENV GOPROXY="https://goproxy.cn"ENV