chore: update Dockerfile.docs to remove openapi.json copy step

- Removed the step that copies openapi.json to the docs public folder, streamlining the Docker build process.
- Updated the documentation generation command to clarify the source of openapi.json.
This commit is contained in:
Mauricio Siu
2025-11-30 01:19:45 -06:00
parent b594e5fbf3
commit 3483f0ef27

View File

@@ -11,11 +11,7 @@ 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
# Generate OpenAPI documentation from apps/docs/public/openapi.json
RUN pnpm --filter=./apps/docs run build:docs
# Deploy only the dokploy app