Spaces:
Runtime error
Runtime error
Download Dockerfile from DjangoPeng/GitHubSentinel: direct link, hf CLI and curl.
- Browser
- Download file 486 Bytes
-
https://huggingface.co/spaces/DjangoPeng/GitHubSentinel/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DjangoPeng/GitHubSentinel/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DjangoPeng/GitHubSentinel/resolve/main/Dockerfile
486 Bytes
| # Dockerfile | |
| # 使用官方的 Python 基础镜像 | |
| FROM python:3.10-slim | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 复制 requirements.txt 并安装依赖 | |
| COPY requirements.txt . | |
| # 安装 Python 依赖 | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 复制项目的所有文件到容器 | |
| COPY . . | |
| # 复制并执行 validate_tests.sh 脚本 | |
| COPY validate_tests.sh . | |
| RUN chmod +x validate_tests.sh | |
| RUN ./validate_tests.sh | |
| # 设置容器入口 | |
| CMD ["python", "src/daemon_process.py"] | |