Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| LABEL maintainer="shikhar" \ | |
| version="0.1.0" \ | |
| description="CloudGuard-S3-Auditor OpenEnv Environment" | |
| WORKDIR /app | |
| # Install deps first (cache layer) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy source | |
| COPY models.py main.py inference.py openenv.yaml ./ | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ | |
| CMD python -c "import requests; requests.get('http://localhost:7860/health').raise_for_status()" | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |