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