| # Use a lightweight Python image | |
| FROM python:3.9-slim | |
| # Install specific versions to avoid the HfFolder error | |
| RUN pip install "huggingface_hub<1.0" "gradio<5.0" requests | |
| # Copy the app script into the container | |
| COPY app.py . | |
| # Hugging Face Spaces run on port 7860 | |
| EXPOSE 7860 | |
| # Run the pinger UI | |
| CMD ["python", "app.py"] | |