Dockerfile
455 字节
FROM 192.168.0.243:5000/mmm/partnermg:base
#FROM golang:latest
ENV APP_DIR $GOPATH/src/partnermg
RUN mkdir -p $APP_DIR
WORKDIR $APP_DIR/
COPY ./pkg pkg
COPY ./conf conf
COPY ./go.mod go.mod
COPY ./vendor vendor
COPY ./main.go main.go
RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"]
ENV GO111MODULE on
ENV GOPROXY https://goproxy.cn
# RUN ["go","mod","tidy"]
RUN ["go","build","-mod=vendor"]
EXPOSE 8082 443
ENTRYPOINT ["./partnermg"]