Download Dockerfile from dragxd/host: direct link, hf CLI and curl.
- Browser
- Download file 617 Bytes
-
https://huggingface.co/spaces/dragxd/host/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dragxd/host/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dragxd/host/resolve/main/Dockerfile
617 Bytes
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install git and build tools | |
| RUN apt-get update && \ | |
| apt-get install -y git build-essential && \ | |
| apt-get clean | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| # Install dependencies for the current user (not system-wide) | |
| RUN pip install --upgrade pip && \ | |
| pip install --no-cache-dir --user -r requirements.txt | |
| # Add user base binary directory to PATH (for --user installs) | |
| ENV PATH="$PATH:/home/user/.local/bin" | |
| # Copy application code | |
| COPY app.py . | |
| # Start the app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |