作者 Administrator

更新 Dockerfile

正在显示 1 个修改的文件 包含 4 行增加3 行删除
1 -FROM golang:latest 1 +#FROM golang:latest
  2 +FROM 192.168.0.243:5000/mmm/mmm-worth:2020042
2 MAINTAINER linmadan <772181827@qq.com> 3 MAINTAINER linmadan <772181827@qq.com>
3 ENV APP_DIR $GOPATH/src/mmm-worth 4 ENV APP_DIR $GOPATH/src/mmm-worth
4 RUN mkdir -p $APP_DIR 5 RUN mkdir -p $APP_DIR
@@ -10,6 +11,6 @@ COPY ./main.go main.go @@ -10,6 +11,6 @@ COPY ./main.go main.go
10 RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"] 11 RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"]
11 ENV GO111MODULE on 12 ENV GO111MODULE on
12 ENV GOPROXY https://goproxy.io 13 ENV GOPROXY https://goproxy.io
13 -RUN ["go","mod","tidy"]  
14 -RUN ["go","build"] 14 +#RUN ["go","mod","tidy"]
  15 +#RUN ["go","build"]
15 ENTRYPOINT ["./mmm-worth"] 16 ENTRYPOINT ["./mmm-worth"]