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