作者 yangfu

Dockerfile修改

FROM golang:latest
MAINTAINER <>
ENV APP_DIR $GOPATH/src/project
RUN mkdir -p $APP_DIR
WORKDIR $APP_DIR/
... ... @@ -11,6 +10,6 @@ RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"]
ENV GO111MODULE on
ENV GOPROXY https://goproxy.io
RUN ["go","mod","tidy"]
RUN ["ls"]
RUN ["go","build"]
RUN ["ls"]
ENTRYPOINT ["./project"]
\ No newline at end of file
... ...
... ... @@ -83,6 +83,8 @@ spec:
value: "1"
- name: ERROR_BASE_CODE_MULTIPLE
value: "1000"
- name: ENABLE_KAFKA_LOG
value: "true"
volumes:
- name: accesslogs
emptyDir: {}
\ No newline at end of file
... ...