chore: 更新版本号至2.9.9.32并优化Docker构建
- 更新VERSION文件中的版本号 - 在go mod download失败时继续执行构建 - 在构建tls-sidecar前执行go mod tidy以确保依赖整洁
This commit is contained in:
parent
81dd6a3f86
commit
afedccf934
2 changed files with 3 additions and 3 deletions
|
|
@ -5,10 +5,10 @@ RUN apk add --no-cache git
|
|||
|
||||
WORKDIR /build
|
||||
COPY tls-sidecar/go.mod tls-sidecar/go.sum* ./
|
||||
RUN go mod download
|
||||
RUN go mod download || true
|
||||
|
||||
COPY tls-sidecar/ ./
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o tls-sidecar .
|
||||
RUN go mod tidy && CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o tls-sidecar .
|
||||
|
||||
# ── Stage 2: Node.js 应用 ──
|
||||
# 使用官方Node.js运行时作为基础镜像
|
||||
|
|
|
|||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
2.9.9.31
|
||||
2.9.9.32
|
||||
|
|
|
|||
Loading…
Reference in a new issue