Spaces:
Sleeping
Sleeping
Download Dockerfile from minipuding/test_agent: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/spaces/minipuding/test_agent/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/minipuding/test_agent/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/minipuding/test_agent/resolve/main/Dockerfile
553 Bytes
| # 基础镜像 | |
| FROM python:3.11-slim | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 复制文件 | |
| COPY requirements.txt . | |
| COPY run.sh . | |
| COPY src/ ./src/ | |
| COPY agent_fastapi.py . | |
| COPY cli.py . | |
| COPY config.toml . | |
| COPY web/ ./web/ | |
| COPY prompts/ ./prompts/ | |
| COPY .storyline/ ./.storyline/ | |
| COPY download.sh . | |
| # 安装依赖 | |
| RUN apt-get update && apt-get install -y ffmpeg wget unzip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 下载 | |
| RUN chmod +x download.sh | |
| RUN ./download.sh | |
| # 暴露 HF Space 默认端口 | |
| EXPOSE 7860 | |
| # 启动命令 | |
| CMD ["bash", "run.sh"] |