26 lines
566 B
Docker
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"]
|