Merge pull request #60 from MODSetter/dev

fix: fumadocs postinstall in docker
This commit is contained in:
Rohan Verma 2025-04-24 19:02:32 -07:00 committed by GitHub
commit ed7f3c2f5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,8 +8,15 @@ RUN npm install -g pnpm
# Copy package files
COPY package.json pnpm-lock.yaml ./
# Install dependencies
RUN pnpm install
# First copy the config file to avoid fumadocs-mdx postinstall error
COPY source.config.ts ./
COPY content ./content
# Install dependencies with --ignore-scripts to skip postinstall
RUN pnpm install --ignore-scripts
# Now run the postinstall script manually
RUN pnpm fumadocs-mdx
# Copy source code
COPY . .