Download Dockerfile from trytax/try1: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/trytax/try1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/trytax/try1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/trytax/try1/resolve/main/Dockerfile
333 Bytes
| 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"] |