| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 安装 Playwright 系统依赖和浏览器 | |
| RUN playwright install-deps chromium && playwright install chromium | |
| COPY app.py register.py . | |
| RUN mkdir -p /app/tokens | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |