From 92ef326f5b6ab0626dc50b3823b8b5670fbccded Mon Sep 17 00:00:00 2001 From: shagag <76105109+shakedhagag@users.noreply.github.com> Date: Tue, 17 Dec 2024 13:38:35 +0200 Subject: [PATCH] Added Docker Deployment Section (#1166) * Added Docker Deployment Section fixes #1153 --- .../content/docs/ui/manual-installation.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/apps/docs/content/docs/ui/manual-installation.mdx b/apps/docs/content/docs/ui/manual-installation.mdx index b8b933c68..1a3d0c7e1 100644 --- a/apps/docs/content/docs/ui/manual-installation.mdx +++ b/apps/docs/content/docs/ui/manual-installation.mdx @@ -185,3 +185,21 @@ See [Organizing Pages](/docs/ui/page-conventions) for customising routing. You can use [Home Layout](/docs/ui/blocks/home-layout) for other pages of the site. It includes the theme toggle and global navigation links. + +### Deploying + +It should work out-of-the-box with Vercel & Netlify. + +#### Docker Deployment + +If you want to deploy your Fumadocs app using Docker with **Fumadocs MDX configured**, make sure to add the `source.config.ts` file to the `WORKDIR` in the Dockerfile. +The following snippet is taken from the official [Next.js Dockerfile Exmaple](https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile): + +```zsh title="Dockerfile" +WORKDIR /app + +# Install dependencies based on the preferred package manager +COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* source.config.ts ./ +``` + +This ensures Fumadocs MDX can access your configuration file during builds.