正在显示
2 个修改的文件
包含
3 行增加
和
2 行删除
1 | FROM golang:latest | 1 | FROM golang:latest |
2 | -MAINTAINER <> | ||
3 | ENV APP_DIR $GOPATH/src/project | 2 | ENV APP_DIR $GOPATH/src/project |
4 | RUN mkdir -p $APP_DIR | 3 | RUN mkdir -p $APP_DIR |
5 | WORKDIR $APP_DIR/ | 4 | WORKDIR $APP_DIR/ |
@@ -11,6 +10,6 @@ RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"] | @@ -11,6 +10,6 @@ RUN ["ln","-sf","/usr/share/zoneinfo/Asia/Shanghai","/etc/localtime"] | ||
11 | ENV GO111MODULE on | 10 | ENV GO111MODULE on |
12 | ENV GOPROXY https://goproxy.io | 11 | ENV GOPROXY https://goproxy.io |
13 | RUN ["go","mod","tidy"] | 12 | RUN ["go","mod","tidy"] |
14 | -RUN ["ls"] | ||
15 | RUN ["go","build"] | 13 | RUN ["go","build"] |
14 | +RUN ["ls"] | ||
16 | ENTRYPOINT ["./project"] | 15 | ENTRYPOINT ["./project"] |
@@ -83,6 +83,8 @@ spec: | @@ -83,6 +83,8 @@ spec: | ||
83 | value: "1" | 83 | value: "1" |
84 | - name: ERROR_BASE_CODE_MULTIPLE | 84 | - name: ERROR_BASE_CODE_MULTIPLE |
85 | value: "1000" | 85 | value: "1000" |
86 | + - name: ENABLE_KAFKA_LOG | ||
87 | + value: "true" | ||
86 | volumes: | 88 | volumes: |
87 | - name: accesslogs | 89 | - name: accesslogs |
88 | emptyDir: {} | 90 | emptyDir: {} |
-
请 注册 或 登录 后发表评论