-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.mcp
More file actions
38 lines (30 loc) · 869 Bytes
/
Copy pathDockerfile.mcp
File metadata and controls
38 lines (30 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Dockerfile para MCP Browser Tools
FROM node:18-alpine
# Instalar dependências do sistema
RUN apk add --no-cache \
chromium \
nss \
freetype \
freetype-dev \
harfbuzz \
ca-certificates \
ttf-freefont \
curl
# Configurar variáveis de ambiente para o Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
# Criar diretório de trabalho
WORKDIR /app
# Instalar MCP Browser Tools
RUN npm install -g @modelcontextprotocol/server-browser-tools
# Instalar dependências adicionais para captura de erros
RUN npm install -g \
puppeteer \
playwright \
@playwright/test
# Criar script de inicialização
COPY mcp-browser-setup.js /app/mcp-browser-setup.js
# Expor porta para comunicação
EXPOSE 3001
# Comando de inicialização
CMD ["node", "/app/mcp-browser-setup.js"]