Skip to content

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

fix(docker): include OpenAPI spec in runtime image (#2007)

Nathan Pham40cc0d116ae6
diff --git a/Dockerfile b/Dockerfile
index 8ca152fb1c..25758c0df7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -50,6 +50,9 @@ COPY --from=builder /app/node_modules/split2 ./node_modules/split2
# traced by Next.js standalone output — copy them explicitly.
COPY --from=builder /app/src/lib/db/migrations ./migrations
ENV OMNIROUTE_MIGRATIONS_DIR=/app/migrations
+# OpenAPI spec is read from disk by /api/openapi/spec at runtime for the
+# Endpoints dashboard. Next.js standalone tracing does not include it.
+COPY --from=builder /app/docs/openapi.yaml ./docs/openapi.yaml
COPY --from=builder /app/scripts/run-standalone.mjs ./run-standalone.mjs
COPY --from=builder /app/scripts/runtime-env.mjs ./runtime-env.mjs