作者 Administrator

增加新文件

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