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