作者 Administrator

更新 Dockerfile

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