Skip to content

Commit

Permalink
Fix issue that build is not skipped (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy authored Oct 31, 2023
1 parent db648b4 commit 2c1716b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2c1716b

Please sign in to comment.