Spaces:
Sleeping
Sleeping
Download Dockerfile from my-ai-stack/stack-2-9-demo: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/spaces/my-ai-stack/stack-2-9-demo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/my-ai-stack/stack-2-9-demo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/my-ai-stack/stack-2-9-demo/resolve/main/Dockerfile
543 Bytes
| # HuggingFace Spaces Dockerfile for Stack 2.9 | |
| # Use this for free inference hosting on HF Spaces | |
| # https://huggingface.co/docs/hub/spaces-sdks-docker | |
| FROM python:3.11-slim | |
| # Set environment | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| ENV HF_HUB_ENABLE_HF_TRANSFER=1 | |
| # Install dependencies - includes Gradio, Transformers, PyTorch | |
| RUN pip install --no-cache-dir \ | |
| gradio>=4.0.0 \ | |
| transformers>=4.40.0 \ | |
| torch \ | |
| accelerate \ | |
| huggingface_hub | |
| # Copy app | |
| COPY app.py . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run app | |
| CMD |