Download Dockerfile from chb2026/image: direct link, hf CLI and curl.
- Browser
- Download file 314 Bytes
-
https://huggingface.co/spaces/chb2026/image/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/chb2026/image/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/chb2026/image/resolve/main/Dockerfile
314 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # 复制应用文件 | |
| COPY . . | |
| # 创建必要的目录 | |
| RUN mkdir -p images | |
| # 安装依赖 | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 设置环境变量 | |
| ENV PYTHONUNBUFFERED=1 | |
| # 运行应用 | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "600", "app:app"] | |