🐳 fix: Fail the Docker Build When the Frontend Build Fails (#16388)
Some checks are pending
Codegraph E2E Votes / vote (full suite) (push) Waiting to run
Docker Dev Branch Images Build / publish (push) Waiting to run

This commit is contained in:
Danny Avila 2026-09-26 06:05:27 -04:00 • committed by GitHub
parent 7b2362d7a7
commit 18cfb5130d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,8 +58,8 @@ COPY --chown=node:node . .
RUN \
# React client build with configurable memory
NODE_OPTIONS="--max-old-space-size=${NODE_MAX_OLD_SPACE_SIZE}" npm run frontend; \
npm prune --production; \
NODE_OPTIONS="--max-old-space-size=${NODE_MAX_OLD_SPACE_SIZE}" npm run frontend && \
npm prune --production && \
npm cache clean --force
# Optional build metadata surfaced in Settings -> About for support triage.