Files
brave-search-mcp-server/Dockerfile
T
Daniel Samson 917106eab5
Build and Push Docker Image / build (push) Successful in 21s
fix: use correct npm script (npm run serve:http)
2026-10-19 18:30:10 +01:00

26 lines
566 B
Docker

FROM node:22-alpine
WORKDIR /app
# Install curl for downloading source
RUN apk add --no-cache curl tar
# Download the repository as a tarball and extract
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
# Prune dev dependencies
RUN npm prune --production
# Remove temporary tools
RUN apk del curl tar
# Expose the MCP server port
EXPOSE 3000
# Start the MCP server with HTTP transport
CMD ["npm", "run", "serve:http"]