Transaltor / Dockerfile
Aichatbot12321's picture
Update Dockerfile
73ad685 verified
Raw History Blame Contribute Delete
490 Bytes
# 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"]