Spaces:
Runtime error
Runtime error
Download Dockerfile from Kye87/AetherForge: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/Kye87/AetherForge/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Kye87/AetherForge/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Kye87/AetherForge/resolve/main/Dockerfile
555 Bytes
| FROM pytorch/pytorch:2.1.2-cuda12.1-cudnn8-runtime | |
| # System dependencies | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| # Create HF user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONUNBUFFERED=1 | |
| WORKDIR $HOME/app | |
| # Install Python dependencies | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY --chown=user . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |