-
Notifications
You must be signed in to change notification settings - Fork 525
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 681 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (17 loc) · 681 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
# Multi-stage Dockerfile for MCP Playwright Server
# This Dockerfile expects the project to be built before running docker build
# Run `npm install --omit=dev && npm run build` before building the image
FROM node:20-slim AS base
# Set working directory
WORKDIR /app
# Copy package files for reference
COPY package*.json ./
# Copy node_modules from host (production dependencies only)
# Make sure to run `npm install --omit=dev` before building
COPY node_modules ./node_modules
# Copy the pre-built application
COPY dist ./dist
# Expose stdio for MCP communication
# MCP servers communicate via stdio, so no port exposure needed
# Run the server
CMD ["node", "dist/index.js"]