From da8935a3e8c836e500698e4082d18f6add4ffeaa Mon Sep 17 00:00:00 2001 From: 0X-SquidSol Date: Thu, 9 Apr 2026 13:29:03 -0400 Subject: [PATCH] fix: copy openapi.yaml into Docker production image The Dockerfile runner stage only copied dist/, node_modules/, and package.json from the builder. The openapi.yaml file (read at runtime by /docs/openapi.yaml endpoint via fs.readFile) was never included, causing a guaranteed 500 error on the /docs endpoint in production. The builder stage also never copied it in (only package.json, lockfiles, tsconfig, and src/). Since openapi.yaml is a runtime asset not needed at build time, copy it directly from the build context into the runner stage. Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index bc8ce23..e2bcf38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ WORKDIR /app COPY --from=builder /app/dist ./dist COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/package.json ./ +COPY openapi.yaml ./ RUN chown -R node:node /app USER node EXPOSE 3001