审查视图

Dockerfile 532 字节
Administrator authored
1
FROM 192.168.0.243:5000/mmm/performance-back:20221121test
tangxvhui authored
2
#FROM 192.168.0.243:5000/mmm/digital-platform:20220831
Administrator authored
3
ENV APP_DIR $GOPATH/src/performance
tangxvhui authored
4 5 6 7 8 9 10
RUN mkdir -p $APP_DIR
WORKDIR $APP_DIR/
COPY ./pkg pkg
COPY ./go.mod go.mod
COPY ./go.sum go.sum
COPY ./main.go main.go
COPY ./key key
Your Name authored
11
COPY ./templates templates
tangxvhui authored
12 13 14 15 16
RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"]
ENV GO111MODULE on
ENV GOPROXY https://goproxy.io
RUN ["go","mod","tidy"]
RUN ["ls"]
Administrator authored
17 18
RUN ["go","build","-o","performance"]
ENTRYPOINT ["./performance"]