正在显示
1 个修改的文件
包含
17 行增加
和
0 行删除
Dockerfile
0 → 100644
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"] |
-
请 注册 或 登录 后发表评论