作者 Administrator

增加新文件

正在显示 1 个修改的文件 包含 16 行增加0 行删除
  1 +FROM golang:latest
  2 +MAINTAINER <>
  3 +ENV APP_DIR $GOPATH/src/project
  4 +RUN mkdir -p $APP_DIR
  5 +WORKDIR $APP_DIR/
  6 +COPY ./pkg pkg
  7 +COPY ./go.mod go.mod
  8 +COPY ./go.sum go.sum
  9 +COPY ./main.go main.go
  10 +RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"]
  11 +ENV GO111MODULE on
  12 +ENV GOPROXY https://goproxy.io
  13 +RUN ["go","mod","tidy"]
  14 +RUN ["ls"]
  15 +RUN ["go","build"]
  16 +ENTRYPOINT ["./project"]