Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(docker): build release image with webpack (Turbopack internal panic) (#4052)
Diego Rodrigues de Sa e Souza8842414d8a15
diff --git a/Dockerfile b/Dockerfileindex 6056be468b..cc82a141dc 100644--- a/Dockerfile+++ b/Dockerfile@@ -38,8 +38,13 @@ RUN --mount=type=cache,target=/root/.npm \&& npm rebuild better-sqlite3 \&& node -e "require('better-sqlite3')(':memory:').close()"-# Use Turbopack for significant build speedup-ENV OMNIROUTE_USE_TURBOPACK=1+# Build with webpack (stable). Turbopack hit a non-recoverable internal panic on this+# Next.js version during the v3.8.27 release build — TurbopackInternalError "entered+# unreachable code: there must be a path to a root" in ImportTracer::get_traces, on both+# linux/amd64 and linux/arm64. Webpack is the proven engine (build:release / VPS / CI Build+# all green). Re-enable Turbopack (=1) once the upstream tracer bug is fixed.+# See docs/ops/QUALITY_GATE_PLAYBOOK.md Parte 6.+ENV OMNIROUTE_USE_TURBOPACK=0COPY . ./RUN --mount=type=cache,target=/app/.build/next/cache \