Spaces:
Running
Running
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| #CMD ["python", "api.py"] | |
| CMD sh -c "while true; do curl -s http://localhost:7860/health > /dev/null; sleep 1200; done & exec python api.py" |