fix: ensure dev dependencies available during build before pruning
Build and Push Docker Image / build (push) Successful in 55s

This commit is contained in:
Daniel Samson committed 2026-10-19 18:33:13 +01:00
1 parent 917106eab5
commit 678c84ebd3
1 file changed
+6 -3
+6 -3
View File
@@ -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