mirror of
https://github.com/Dokploy/website.git
synced 2026-06-15 20:25:25 +02:00
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:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -40,3 +40,7 @@ yarn-error.log*
|
||||
# Misc
|
||||
.DS_Store
|
||||
*.pem
|
||||
|
||||
# Generated files
|
||||
apps/docs/public/openapi.json
|
||||
apps/docs/content/docs/api/generated/
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user