Skip to content

Commit 26cfcb6

Browse files
author
Mauricio Siu
committed
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.
1 parent 3da6c92 commit 26cfcb6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ yarn-error.log*
4040
# Misc
4141
.DS_Store
4242
*.pem
43+
44+
# Generated files
45+
apps/docs/public/openapi.json
46+
apps/docs/content/docs/api/generated/

Dockerfile.docs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ WORKDIR /usr/src/app
1111
# Install dependencies
1212
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --filter=./apps/docs --frozen-lockfile
1313

14+
# Copy openapi.json to docs public folder (needed for both generation and build)
15+
RUN mkdir -p /usr/src/app/apps/docs/public && \
16+
cp /usr/src/app/public/openapi.json /usr/src/app/apps/docs/public/openapi.json
17+
1418
# Generate OpenAPI documentation
1519
RUN pnpm --filter=./apps/docs run build:docs
1620

0 commit comments

Comments
 (0)