File size: 425 Bytes
476eba8
 
a94e576
03e46db
 
 
 
 
476eba8
 
 
a94e576
476eba8
 
 
 
 
a94e576
 
476eba8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"]