fix: ensure dev dependencies available during build before pruning
Build and Push Docker Image / build (push) Successful in 55s
Build and Push Docker Image / build (push) Successful in 55s
This commit is contained in:
1 file changed
+6
-3
+6
-3
@@ -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 | \
|
RUN curl -L https://github.com/brave/brave-search-mcp-server/archive/refs/heads/main.tar.gz | \
|
||||||
tar xz --strip-components=1
|
tar xz --strip-components=1
|
||||||
|
|
||||||
# Install dependencies and build
|
# Install ALL dependencies (including dev deps needed for build)
|
||||||
RUN npm ci && npm run build
|
RUN npm ci
|
||||||
|
|
||||||
# Prune dev dependencies
|
# Build the project
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
# Now prune dev dependencies
|
||||||
RUN npm prune --production
|
RUN npm prune --production
|
||||||
|
|
||||||
# Remove temporary tools
|
# Remove temporary tools
|
||||||
|
|||||||
Reference in new issue
Block a user