Spaces:
Running
Running
| FROM node:20-slim | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright | |
| RUN apt-get update && apt-get install -y \ | |
| libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 \ | |
| libcups2 libdrm2 libdbus-1-3 libxkbcommon0 \ | |
| libatspi2.0-0 libxcomposite1 libxdamage1 libxfixes3 \ | |
| libxrandr2 libgbm1 libasound2 libpango-1.0-0 \ | |
| libcairo2 fonts-noto-cjk \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| RUN npm install @playwright/mcp@latest | |
| RUN npx playwright install chromium | |
| RUN npx playwright install chrome | |
| COPY start.sh /app/start.sh | |
| RUN chmod +x /app/start.sh | |
| EXPOSE 7860 | |
| CMD ["/app/start.sh"] |