审查视图

Dockerfile 407 字节
tangxvhui authored
1 2 3 4 5 6 7
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
tangxvhui authored
8
COPY ./vendor vendor
tangxvhui authored
9 10 11 12
COPY ./main.go main.go
RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"]
ENV GO111MODULE on
ENV GOPROXY https://goproxy.cn
tangxvhui authored
13
# RUN ["go","mod","tidy"]
tangxvhui authored
14
RUN ["go","build","-mod=vendor"]
Administrator authored
15
EXPOSE 8082
tangxvhui authored
16
ENTRYPOINT ["./partnermg"]