From 1f9dc28f076221b33273d89dd6f4c265cac4c8f3 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RTLN3BA\\$punk" Date: Tue, 9 Jun 2026 23:54:37 -0700 Subject: [PATCH] chore(Dockerfile): add git dependency for fumadocs-mdx plugin during build --- surfsense_web/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/surfsense_web/Dockerfile b/surfsense_web/Dockerfile index 0e3ed11de..d851cf045 100644 --- a/surfsense_web/Dockerfile +++ b/surfsense_web/Dockerfile @@ -26,6 +26,12 @@ RUN pnpm i --frozen-lockfile FROM base AS builder WORKDIR /app +# git is required by the fumadocs-mdx lastModified plugin during `next build`. +# The .git directory is dockerignored, so git commands exit non-zero and the +# plugin falls back gracefully — but the binary itself must exist to avoid +# "spawn git ENOENT" failures. +RUN apk add --no-cache git + # Enable pnpm RUN corepack enable pnpm