Skip to content

Commit

Permalink
Added Docker Deployment Section (#1166)
Browse files Browse the repository at this point in the history
* Added Docker Deployment Section

fixes #1153
  • Loading branch information
shakedhagag authored Dec 17, 2024
1 parent 1201138 commit 92ef326
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions apps/docs/content/docs/ui/manual-installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 92ef326

Please sign in to comment.