Stu Mason
Stu Mason

Activity

Pull Request Opened

PR #191 opened: ci(docs): add Dockerfile.docs for the coolify-mcp.stumason.dev deploy

Multi-stage build for the VitePress docs site:

  • Builder: node:22-alpine, copies /site, runs npm ci + npm run build
  • Runtime: nginx:1.27-alpine, serves .vitepress/dist with a try_files rewrite for VitePress cleanUrls (so /foo serves /foo.html)
  • gzip enabled for text/css/js/json/svg

Coolify is currently configured to build with nixpacks, which detects node and tries to npm start the container — which crashes because VitePress has no start script. This Dockerfile gives us full control: build then serve, no nixpacks magic.

After merge: I'll switch the Coolify app from build_pack=nixpacks to dockerfile, set dockerfile_location=/Dockerfile.docs, and redeploy. Then the site lands at https://coolify-mcp.stumason.dev.

+28
additions
-0
deletions
1
files changed