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

Integrated into release/v3.8.0
This commit is contained in:
Nathan Pham
2026-05-07 18:49:29 +07:00
committed by GitHub
parent e9d96fa3ff
commit 40cc0d116a

View File

@@ -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