From 08638996370254b9d883e7b97a8c7206991faa5f Mon Sep 17 00:00:00 2001 From: "DESKTOP-RTLN3BA\\$punk" Date: Tue, 23 Dec 2025 02:09:38 -0800 Subject: [PATCH] chore: update Dockerfile to skip postinstall scripts during dependency installation - Modified the dependency installation command to skip postinstall scripts, which require all source files. - Added a separate command to run the fumadocs-mdx postinstall after the source files are copied, ensuring proper setup. --- Dockerfile.allinone | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile.allinone b/Dockerfile.allinone index 0765deb15..12eee5c90 100644 --- a/Dockerfile.allinone +++ b/Dockerfile.allinone @@ -28,12 +28,15 @@ COPY surfsense_web/package.json surfsense_web/pnpm-lock.yaml* ./ COPY surfsense_web/source.config.ts ./ COPY surfsense_web/content ./content -# Install dependencies -RUN pnpm install --frozen-lockfile +# Install dependencies (skip postinstall which requires all source files) +RUN pnpm install --frozen-lockfile --ignore-scripts # Copy source COPY surfsense_web/ ./ +# Run fumadocs-mdx postinstall now that source files are available +RUN pnpm fumadocs-mdx + # Build args for frontend ARG NEXT_PUBLIC_FASTAPI_BACKEND_URL=http://localhost:8000 ARG NEXT_PUBLIC_FASTAPI_BACKEND_AUTH_TYPE=LOCAL