Spaces:
Sleeping
Sleeping
Download Dockerfile from KitagawaC36/VCT: direct link, hf CLI and curl.
- Browser
- Download file 804 Bytes
-
https://huggingface.co/spaces/KitagawaC36/VCT/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/KitagawaC36/VCT/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/KitagawaC36/VCT/resolve/main/Dockerfile
804 Bytes
| FROM python:3.10 | |
| # yt-dlpのBot回避機能に必要なNode.jsとffmpegをインストール | |
| RUN apt-get update && \ | |
| apt-get install -y ffmpeg curl && \ | |
| curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | |
| apt-get install -y nodejs && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # ▼▼▼ 修正: gthreadモードに変更 ▼▼▼ | |
| # -k gthread: 標準スレッドを使用 (Eventlet廃止) | |
| # -w 1: プロセスは1つのまま (Socket.IOの接続維持のため) | |
| # --threads 100: 1プロセス内で100スレッドまで立ち上げ可能にする | |
| CMD ["gunicorn", "-k", "gthread", "-w", "1", "--threads", "100", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"] |