From 581ae894375fc9f7d12fe5da85fcaf1eded923a5 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RTLN3BA\\$punk" Date: Thu, 24 Apr 2025 18:23:11 -0700 Subject: [PATCH] fix: update Dockerfile to handle fumadocs-mdx postinstall error by copying config and content before installation --- surfsense_web/Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/surfsense_web/Dockerfile b/surfsense_web/Dockerfile index 2ce0b0f..4b3c97a 100644 --- a/surfsense_web/Dockerfile +++ b/surfsense_web/Dockerfile @@ -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 . .