mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Merge pull request #4003 from Infisical/offline-docs-dockerfile-update
Allow docs to run fully offline
This commit is contained in:
@@ -1,6 +1,32 @@
|
|||||||
FROM node:20-alpine
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN npm install -g mint
|
|
||||||
|
RUN npm install -g mint@4.2.13
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Install a local version of our OpenAPI spec
|
||||||
|
RUN apk add --no-cache wget jq && \
|
||||||
|
wget -O spec.json https://app.infisical.com/api/docs/json && \
|
||||||
|
jq '.api.openapi = "./spec.json"' docs.json > temp.json && \
|
||||||
|
mv temp.json docs.json
|
||||||
|
|
||||||
|
# Run mint dev briefly to download the web client
|
||||||
|
RUN timeout 30 mint dev || true
|
||||||
|
|
||||||
|
FROM node:20-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN npm install -g mint@4.2.13
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
COPY --from=builder /root/.mintlify /root/.mintlify
|
||||||
|
COPY --from=builder /app/docs.json /app/docs.json
|
||||||
|
COPY --from=builder /app/spec.json /app/spec.json
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["mint", "dev"]
|
CMD ["mint", "dev"]
|
||||||
|
|||||||
@@ -78,7 +78,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"group": "Infisical SSH",
|
"group": "Infisical SSH",
|
||||||
"pages": ["documentation/platform/ssh/overview", "documentation/platform/ssh/host-groups"]
|
"pages": [
|
||||||
|
"documentation/platform/ssh/overview",
|
||||||
|
"documentation/platform/ssh/host-groups"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"group": "Key Management (KMS)",
|
"group": "Key Management (KMS)",
|
||||||
@@ -375,7 +378,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"group": "Architecture",
|
"group": "Architecture",
|
||||||
"pages": ["internals/architecture/components", "internals/architecture/cloud"]
|
"pages": [
|
||||||
|
"internals/architecture/components",
|
||||||
|
"internals/architecture/cloud"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"internals/security",
|
"internals/security",
|
||||||
"internals/service-tokens"
|
"internals/service-tokens"
|
||||||
@@ -546,7 +552,10 @@
|
|||||||
"integrations/cloud/gcp-secret-manager",
|
"integrations/cloud/gcp-secret-manager",
|
||||||
{
|
{
|
||||||
"group": "Cloudflare",
|
"group": "Cloudflare",
|
||||||
"pages": ["integrations/cloud/cloudflare-pages", "integrations/cloud/cloudflare-workers"]
|
"pages": [
|
||||||
|
"integrations/cloud/cloudflare-pages",
|
||||||
|
"integrations/cloud/cloudflare-workers"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"integrations/cloud/terraform-cloud",
|
"integrations/cloud/terraform-cloud",
|
||||||
"integrations/cloud/databricks",
|
"integrations/cloud/databricks",
|
||||||
@@ -658,7 +667,11 @@
|
|||||||
"cli/commands/reset",
|
"cli/commands/reset",
|
||||||
{
|
{
|
||||||
"group": "infisical scan",
|
"group": "infisical scan",
|
||||||
"pages": ["cli/commands/scan", "cli/commands/scan-git-changes", "cli/commands/scan-install"]
|
"pages": [
|
||||||
|
"cli/commands/scan",
|
||||||
|
"cli/commands/scan-git-changes",
|
||||||
|
"cli/commands/scan-install"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -982,7 +995,9 @@
|
|||||||
"pages": [
|
"pages": [
|
||||||
{
|
{
|
||||||
"group": "Kubernetes",
|
"group": "Kubernetes",
|
||||||
"pages": ["api-reference/endpoints/dynamic-secrets/kubernetes/create-lease"]
|
"pages": [
|
||||||
|
"api-reference/endpoints/dynamic-secrets/kubernetes/create-lease"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"api-reference/endpoints/dynamic-secrets/create",
|
"api-reference/endpoints/dynamic-secrets/create",
|
||||||
"api-reference/endpoints/dynamic-secrets/update",
|
"api-reference/endpoints/dynamic-secrets/update",
|
||||||
|
|||||||
Reference in New Issue
Block a user