Spaces:
Runtime error
Runtime error
Download Dockerfile from vericudebuget/zero_gpu_test: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/vericudebuget/zero_gpu_test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vericudebuget/zero_gpu_test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vericudebuget/zero_gpu_test/resolve/main/Dockerfile
436 Bytes
| FROM python:3.9-slim | |
| # Copy all files into the container | |
| COPY . /app | |
| # Set working directory | |
| WORKDIR /app | |
| # Install required Python packages with Uvicorn standard for WebSocket support | |
| RUN pip install --no-cache-dir fastapi "uvicorn[standard]" huggingface_hub | |
| # Expose the port that Hugging Face Spaces expects (7860) | |
| EXPOSE 7860 | |
| # Run the FastAPI app with uvicorn | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |