From 2c1716b8b09e9a3d5020b0a7c69a1be3f14256bb Mon Sep 17 00:00:00 2001 From: Chongyi Zheng Date: Tue, 31 Oct 2023 03:54:34 -0400 Subject: [PATCH] Fix issue that build is not skipped (#581) --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a0a489d39..023fab9b30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,10 +25,13 @@ WORKDIR /app COPY web ./ # if dist exists, skip the build -RUN [[ -d dist ]] && echo "build exists, skipping" || echo "build does not exist, building" && \ +RUN [[ -d dist ]] && echo "build exists, skipping" || \ + ( \ + echo "build does not exist, building" && \ npm ci && \ echo "export const browserVersion = \"${BUILD_VERSION}\"" > src/utils/info.ts && \ - npm run build + npm run build \ + ) FROM alpine:3.18.4