Download Dockerfile from muzsang/Notion: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/muzsang/Notion/resolve/541e1ea5be292056fdbeb9bddba87d2e5e660430/Dockerfile
- Command line
-
hf download hf://spaces/muzsang/Notion@541e1ea5be292056fdbeb9bddba87d2e5e660430/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/muzsang/Notion/resolve/541e1ea5be292056fdbeb9bddba87d2e5e660430/Dockerfile
376 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # 安装依赖 | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 复制代码 | |
| COPY app.py . | |
| # 暴露端口 | |
| EXPOSE 7860 | |
| # 使用 gunicorn 启动应用,将日志级别从 debug 改为 warning | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "300", "--workers", "1", "--log-level", "warning", "app:app"] | |