mirror of
https://github.com/hanzoai/kms.git
synced 2026-10-17 11:18:16 +00:00
Public-facing docs, metadata, and branding: - README.md: remove fork attribution, rebrand intro - package.json: clean description - CONTRIBUTING.md, SECURITY.md: remove Infisical mentions - LLM.md: update image name, remove fork language - docs/docs.json: rebrand name, nav labels, social links, footer URLs - company/ handbook & docs: rebrand all Infisical mentions - .env.migration.example: use hanzokms credentials - flake.nix: update description, remove infisical package - .github/ISSUE_TEMPLATE/config.yml: fix broken ghcr.io URLs - docs/ (24 files): rebrand prose, mermaid diagrams, API URLs - docs/Dockerfile: update spec fetch URL Removed upstream assets: - img/infisical_github_repo.png, infisical_github_repo2.png - .github/images/star-infisical.gif - .github/images/.!35663!deploy-to-aws.png (corrupted empty) NOT changed (would break code/legal): - LICENSE (MIT copyright must stay) - backend/src/ee/LICENSE.md (upstream enterprise license) - backend/package.json (@infisical/* npm deps) - Dockerfiles (apt-get install infisical CLI) - env var names (INFISICAL_TOKEN, INF_APP_CONNECTION_*) - docs.json page paths (require file renames) - frontend/dist/locales (compiled translation keys)
37 lines
909 B
Docker
37 lines
909 B
Docker
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm install -g [email protected]
|
|
|
|
COPY . .
|
|
|
|
# Install a local version of our OpenAPI spec
|
|
RUN apk add --no-cache wget jq && \
|
|
wget -O spec.json https://kms.hanzo.ai/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 addgroup -g 1001 -S mintuser && \
|
|
adduser -S -D -H -u 1001 -s /sbin/nologin -G mintuser mintuser && \
|
|
npm install -g [email protected]
|
|
|
|
COPY --chown=mintuser:mintuser . .
|
|
|
|
COPY --from=builder --chown=mintuser:mintuser /root/.mintlify /home/mintuser/.mintlify
|
|
COPY --from=builder --chown=mintuser:mintuser /app/docs.json /app/docs.json
|
|
COPY --from=builder --chown=mintuser:mintuser /app/spec.json /app/spec.json
|
|
|
|
USER mintuser
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["mint", "dev"]
|