fix: update Dockerfile to handle fumadocs-mdx postinstall error by copying config and content before installation

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-04-24 18:23:11 -07:00
parent 374a6ef83c
commit 581ae89437

View file

@ -8,8 +8,15 @@ RUN npm install -g pnpm
# Copy package files # Copy package files
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml ./
# Install dependencies # First copy the config file to avoid fumadocs-mdx postinstall error
RUN pnpm install 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 source code
COPY . . COPY . .