mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-05 22:02:39 +02:00
Merge pull request #60 from MODSetter/dev
fix: fumadocs postinstall in docker
This commit is contained in:
commit
ed7f3c2f5f
1 changed files with 9 additions and 2 deletions
|
|
@ -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 . .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue