Download Dockerfile from PYAE1994/autonomous-coding-system-v5: direct link, hf CLI and curl.
- Browser
- Download file 559 Bytes
-
https://huggingface.co/spaces/PYAE1994/autonomous-coding-system-v5/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PYAE1994/autonomous-coding-system-v5/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PYAE1994/autonomous-coding-system-v5/resolve/main/Dockerfile
559 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # System deps | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git curl build-essential && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Python deps | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy backend source | |
| COPY . . | |
| # Workspace dir | |
| RUN mkdir -p /tmp/god_workspace | |
| # HF Spaces runs on port 7860 | |
| ENV PORT=7860 | |
| ENV WORKSPACE_DIR=/tmp/god_workspace | |
| ENV PYTHONPATH=/app | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main_v7:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] | |