From 20a80982fe8737037b4237b2bf5ad35758b5391c Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 19 Jan 2026 17:42:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BA=E5=AE=9A=20Alpine=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=B8=BA=203.19=20=E4=BB=A5=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=8C=85=E5=85=BC=E5=AE=B9=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.api | 2 +- Dockerfile.worker | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.api b/Dockerfile.api index 063628e..6f8b8a6 100644 --- a/Dockerfile.api +++ b/Dockerfile.api @@ -32,7 +32,7 @@ RUN go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate # ================================ # 阶段 2: 运行阶段 # ================================ -FROM alpine:latest +FROM alpine:3.19 # 安装运行时依赖 RUN apk add --no-cache ca-certificates tzdata bash curl diff --git a/Dockerfile.worker b/Dockerfile.worker index 1ad240e..acb3a57 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -29,7 +29,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ # ================================ # 阶段 2: 运行阶段 # ================================ -FROM alpine:latest +FROM alpine:3.19 # 安装运行时依赖 RUN apk add --no-cache ca-certificates tzdata bash