Spaces:
Runtime error
Runtime error
Download Dockerfile from ozair23/diffusion-api: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/spaces/ozair23/diffusion-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ozair23/diffusion-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ozair23/diffusion-api/resolve/main/Dockerfile
387 Bytes
| FROM shahrukhsiddiq/diffusion-api:latest | |
| # Set working directory | |
| WORKDIR /app | |
| # Create writable cache folder | |
| RUN mkdir -p /app/cache && chmod -R 777 /app/cache | |
| # Redirect Hugging Face and Transformers cache | |
| ENV TRANSFORMERS_CACHE=/app/cache | |
| ENV HF_HOME=/app/cache | |
| # Expose FastAPI port | |
| EXPOSE 8000 | |
| # Launch FastAPI | |
| CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"] | |