Edmilson Alexandre commited on
Commit
03e46db
·
1 Parent(s): fef0689

yeah again 3

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,20 +1,20 @@
1
- # Use uma imagem Python leve
2
  FROM python:3.11-slim
3
 
4
- # Defina diretório de trabalho
 
 
 
 
 
5
  WORKDIR /app
6
 
7
- # Copie arquivos necessários
8
  COPY requirements.txt .
9
  COPY API_flask_server.py .
10
  COPY model.py .
11
 
12
- # Instale dependências
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- # Exponha a porta que Hugging Face Spaces vai usar
16
  EXPOSE 7860
17
 
18
- # Comando para rodar o Flask
19
  CMD ["python", "API_flask_server.py"]
20
 
 
 
1
  FROM python:3.11-slim
2
 
3
+ # Instalar dependências de sistema necessárias para LightGBM
4
+ RUN apt-get update && apt-get install -y \
5
+ build-essential \
6
+ libgomp1 \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  WORKDIR /app
10
 
 
11
  COPY requirements.txt .
12
  COPY API_flask_server.py .
13
  COPY model.py .
14
 
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
17
  EXPOSE 7860
18
 
 
19
  CMD ["python", "API_flask_server.py"]
20