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.
This commit is contained in:
Mauricio Siu
2025-11-30 01:17:44 -06:00
parent 3da6c92d01
commit 26cfcb6b46
2 changed files with 8 additions and 0 deletions

4
.gitignore vendored
View File

@@ -40,3 +40,7 @@ yarn-error.log*
# Misc
.DS_Store
*.pem
# Generated files
apps/docs/public/openapi.json
apps/docs/content/docs/api/generated/

View File

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