Spaces:
Sleeping
Sleeping
| FROM openjdk:17-slim | |
| RUN apt-get update && apt-get install -y python3 python3-pip | |
| WORKDIR /app | |
| COPY . . | |
| RUN pip3 install -r requirements.txt | |
| # Expose port | |
| EXPOSE 7860 | |
| # Health check | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ | |
| CMD curl -f http://localhost:7860/health || exit 1 | |
| # Start the application | |
| CMD ["python3", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |