File size: 490 Bytes
8feaa6c
 
eefa6f9
ee9b435
eefa6f9
ee9b435
eefa6f9
73ad685
 
 
ee9b435
eefa6f9
73ad685
3a5012d
 
eefa6f9
ee9b435
eefa6f9
ee9b435
eefa6f9
ee9b435
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Upgrade the base image to Node.js v22 for native WebSocket support
FROM node:22

WORKDIR /app

COPY package*.json ./

# Force Playwright to install browsers directly into the local app folder
ENV PLAYWRIGHT_BROWSERS_PATH=0

RUN npm install

# Install Playwright browsers and Linux dependencies into the path set above
RUN npx playwright install --with-deps chromium

# Copy over all your upgraded HTML assets and your server engine script
COPY . .

EXPOSE 10000

CMD ["node", "server.js"]