From c9e619ff5e018ca1d8b9a6a5bdce8082d16dfccf Mon Sep 17 00:00:00 2001 From: panda <1415243231@qq.com> Date: Sun, 24 May 2026 23:38:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0VERSION=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=BC=BA=E5=88=B6=E6=AF=8F=E6=AC=A1=E9=87=8D?= =?UTF-8?q?=E5=BB=BAdist=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile.frontend | 5 +++++ docker-compose.yml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Dockerfile.frontend b/Dockerfile.frontend index 7ed39f8..08ff414 100644 --- a/Dockerfile.frontend +++ b/Dockerfile.frontend @@ -1,8 +1,13 @@ # Frontend: Node.js static file server with API proxy FROM nfqlt/node20 +ARG BUILD_TIME + WORKDIR /app +# Use BUILD_TIME to invalidate cache so dist/ is always fresh +RUN echo "Build: $BUILD_TIME" + # Copy static files COPY dist/ /app/dist/ diff --git a/docker-compose.yml b/docker-compose.yml index 7930dda..a54bd15 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,6 +22,8 @@ services: build: context: . dockerfile: Dockerfile.frontend + args: + - VERSION=2 container_name: publish-frontend restart: unless-stopped ports: