审查视图

Dockerfile 457 字节
Administrator authored
1
FROM 192.168.0.243:5000/mmm/allied-creation-gateway:20210809
yangfu authored
2
ENV APP_DIR $GOPATH/src/project-20210909
Administrator authored
3 4 5
RUN mkdir -p $APP_DIR
WORKDIR $APP_DIR/
COPY ./pkg pkg
tangxuhui authored
6
COPY ./config config
Administrator authored
7 8 9 10 11
COPY ./go.mod go.mod
COPY ./go.sum go.sum
COPY ./main.go main.go
RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"]
ENV GO111MODULE on
tangxuhui authored
12
ENV GOPROXY https://goproxy.cn
Administrator authored
13 14
RUN ["go","mod","tidy"]
RUN ["go","build"]
yangfu authored
15 16
RUN ["ls"]
ENTRYPOINT ["./allied-creation-gateway"]