Download Dockerfile from yuebinliu/proxy: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/yuebinliu/proxy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/yuebinliu/proxy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/yuebinliu/proxy/resolve/main/Dockerfile
311 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # 复制依赖文件 | |
| COPY requirements.txt . | |
| # 安装依赖 | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 复制应用代码和配置文件 | |
| COPY app.py . | |
| COPY config.json . | |
| # 暴露端口(Hugging Face 要求) | |
| EXPOSE 7860 | |
| # 启动应用 | |
| CMD ["python", "app.py"] |