Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🐳 fix: Fail the Docker Build When the Frontend Build Fails (#16388)

Danny Avila18cfb5130d6a
diff --git a/Dockerfile b/Dockerfile
index 9dc166e943..7e1e77b659 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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.