geronimo-pericoli commited on
Commit
01970f9
verified
1 Parent(s): c51e52a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -4
Dockerfile CHANGED
@@ -3,14 +3,19 @@ FROM python:3.10-slim
3
 
4
  WORKDIR /app
5
 
6
- # Instalar dependencias del sistema para aiohttp
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
- gcc python3-dev && \
9
  rm -rf /var/lib/apt/lists/*
10
 
11
- COPY . .
 
 
 
 
12
 
13
- RUN pip install --no-cache-dir fastmcp aiohttp
 
14
 
15
  EXPOSE 7860
16
 
 
3
 
4
  WORKDIR /app
5
 
6
+ # Instalar dependencias del sistema (a帽ade libgomp1 para llama_index)
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ gcc python3-dev libgomp1 && \
9
  rm -rf /var/lib/apt/lists/*
10
 
11
+ # Copiar requirements.txt primero para cachear la instalaci贸n
12
+ COPY requirements.txt .
13
+
14
+ # Instalar dependencias de Python (incluyendo llama_index)
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ # Copiar el resto de los archivos
18
+ COPY . .
19
 
20
  EXPOSE 7860
21