From 23e606f570010c2282104e012c1f00bd3d53b713 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Mon, 20 Jul 2026 19:40:38 +0800 Subject: [PATCH] fix(frontend): pin nginx base image by digest for old-host compatibility The floating `nginx:stable-alpine` tag drifts with every stable release. A newer Alpine base (3.24+) fails to start on old hosts such as CentOS 7 (kernel 3.10 + old libseccomp), which broke v0.7.0. Pin to nginx 1.30.3 / Alpine 3.23.5 by digest, the same base as the working v0.6.3 image. --- frontend/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 497dfe5b..0f2dc016 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,6 +1,12 @@ # Production image. Build static assets on the host first: # ./scripts/build_frontend_dist.sh -FROM nginx:stable-alpine +# +# Base image pinned by digest for reproducibility. Do NOT switch back to the +# floating `nginx:stable-alpine` tag: it drifts with every stable release and a +# newer Alpine base (3.24+) fails to start on old hosts such as CentOS 7 +# (kernel 3.10 + old libseccomp), which broke v0.7.0. This digest is +# nginx 1.30.3 / Alpine 3.23.5, the same base as the working v0.6.3 image. +FROM nginx:1.30.3-alpine@sha256:0d3b80406a13a767339fbe2f41406d6c7da727ab89cf8fae399e81f780f814d1 COPY dist /usr/share/nginx/html