build 文件
FROM golang:1.13-alpine AS buildWORKDIR /go/src/github.com/org/repoCOPY . .ENV GOPROXY=https://goproxy.cn,directRUN go build -o server .FROM alpine:3.12EXPOSE 8000COPY --from=build /go/src/github.com/org/repo/server /serverCMD ["/server"]
