From 26cfcb6b463c5642c0b02de39345396449c81327 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Sun, 30 Nov 2025 01:17:44 -0600 Subject: [PATCH] chore: reintroduce openapi.json copy step in Dockerfile.docs - Added a step to copy openapi.json to the docs public folder, necessary for both generation and build processes. - This change ensures that the OpenAPI documentation is correctly accessible during the Docker build. --- .gitignore | 4 ++++ Dockerfile.docs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 368c5ed..235097a 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,7 @@ yarn-error.log* # Misc .DS_Store *.pem + +# Generated files +apps/docs/public/openapi.json +apps/docs/content/docs/api/generated/ diff --git a/Dockerfile.docs b/Dockerfile.docs index 647779d..dd25253 100644 --- a/Dockerfile.docs +++ b/Dockerfile.docs @@ -11,6 +11,10 @@ WORKDIR /usr/src/app # Install dependencies RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --filter=./apps/docs --frozen-lockfile +# Copy openapi.json to docs public folder (needed for both generation and build) +RUN mkdir -p /usr/src/app/apps/docs/public && \ + cp /usr/src/app/public/openapi.json /usr/src/app/apps/docs/public/openapi.json + # Generate OpenAPI documentation RUN pnpm --filter=./apps/docs run build:docs