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: