| FROM python:3.11-slim | |
| # Dependências de sistema para LightGBM | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| COPY API_fastapi_server.py . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 7860 | |
| # Rodando FastAPI com uvicorn | |
| CMD ["uvicorn", "API_fastapi_server:app", "--host", "0.0.0.0", "--port", "7860"] | |