From 678c84ebd34fdcc12d486134622e64712a1baa65 Mon Sep 17 00:00:00 2001 From: Daniel Samson <12231216+daniel-samson@users.noreply.github.com> Date: Mon, 19 Oct 2026 18:33:13 +0100 Subject: [PATCH] fix: ensure dev dependencies available during build before pruning --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1b8d75d..b41ef62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,10 +9,13 @@ RUN apk add --no-cache curl tar RUN curl -L https://github.com/brave/brave-search-mcp-server/archive/refs/heads/main.tar.gz | \ tar xz --strip-components=1 -# Install dependencies and build -RUN npm ci && npm run build +# Install ALL dependencies (including dev deps needed for build) +RUN npm ci -# Prune dev dependencies +# Build the project +RUN npm run build + +# Now prune dev dependencies RUN npm prune --production # Remove temporary tools