forked from eyalzh/browser-control-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (21 loc) · 646 Bytes
/
Dockerfile
File metadata and controls
31 lines (21 loc) · 646 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
FROM node:22-alpine
# Set working directory
WORKDIR /app
# Copy package files for dependency installation
COPY mcp-server/package*.json ./mcp-server/
# Copy common directory (shared dependency)
COPY common/ ./common/
# Set working directory to mcp-server for installation
WORKDIR /app/mcp-server
# Install dependencies
RUN npm install
# Copy mcp-server source code
COPY mcp-server/ ./
# Build mcp-server
RUN npm run build
# Set default port (EXTENSION_SECRET should be provided at runtime)
ENV EXTENSION_PORT=8089
# Expose port (default WebSocket port for extension communication)
EXPOSE 8089
# Start the MCP server
CMD ["npm", "start"]