Download Dockerfile from sidmaz666/imgenapi: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/spaces/sidmaz666/imgenapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sidmaz666/imgenapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sidmaz666/imgenapi/resolve/main/Dockerfile
509 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install minimal system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libgomp1 \ | |
| libglib2.0-0 \ | |
| git \ | |
| wget \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy and install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Create directory for LoRAs | |
| RUN mkdir -p /app/models/loras | |
| # Copy the FastAPI application | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |