Dockerfile
512 字节
FROM 192.168.0.243:5000/mmm/allied-creation-gateway:base
ENV APP_DIR $GOPATH/src/project-20230407
RUN mkdir -p $APP_DIR
WORKDIR $APP_DIR/
COPY ./pkg pkg
COPY ./config config
COPY ./cmd/pdftopng cmd/pdftopng
COPY ./go.mod go.mod
COPY ./go.sum go.sum
COPY ./main.go main.go
RUN chmod +x cmd/pdftopng
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"]
RUN ["ls"]
ENTRYPOINT ["./allied-creation-gateway"]