mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 18:19:08 +00:00
fix: update Dockerfile to handle fumadocs-mdx postinstall error by copying config and content before installation
This commit is contained in:
parent
374a6ef83c
commit
581ae89437
1 changed files with 9 additions and 2 deletions
|
@ -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 . .
|
||||
|
|
Loading…
Add table
Reference in a new issue