Files
brave-search-mcp-server/Dockerfile
T
Daniel Samson 573c13a467
Build and Push Docker Image / build (push) Failing after 10s
chore: add Dockerfile and CI/CD workflow for Docker image builds
2026-10-19 18:02:49 +01:00

25 lines
610 B
Docker

FROM node:22-alpine
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache git
# Clone and install dependencies
RUN git clone https://github.com/brave/brave-search-mcp-server.git . && \
npm ci --only=production && \
npm run build
# Remove git since we don't need it in runtime
RUN apk del git
# Expose the MCP server port
EXPOSE 3000
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD node -e "require('http').get('http://localhost:3000/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1))"
# Start the MCP server
CMD ["npm", "start"]