Spaces:
Sleeping
Sleeping
File size: 574 Bytes
c41eb87 91bd8cc b431ecf 01970f9 b431ecf 01970f9 b431ecf 01970f9 b431ecf 1261e21 b431ecf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Usar una imagen base de Python 3.10 o superior
FROM python:3.10-slim
WORKDIR /app
# Instalar dependencias del sistema (añade libgomp1 para llama_index)
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc python3-dev libgomp1 && \
rm -rf /var/lib/apt/lists/*
# Copiar requirements.txt primero para cachear la instalación
COPY requirements.txt .
# Instalar dependencias de Python (incluyendo llama_index)
RUN pip install --no-cache-dir -r requirements.txt
# Copiar el resto de los archivos
COPY . .
EXPOSE 7860
CMD ["python", "server.py"] |