# Usar imagen base con Python FROM python:3.11-slim # Instalar dependencias del sistema RUN apt-get update && apt-get install -y \ curl \ && rm -rf /var/lib/apt/lists/* # Instalar Ollama RUN curl -fsSL https://ollama.com/install.sh | sh # Configurar directorio de trabajo WORKDIR /app # Copiar archivos COPY requirements.txt . COPY app.py . # Instalar dependencias Python RUN pip install --no-cache-dir -r requirements.txt # Exponer puerto EXPOSE 7860 # Comando de inicio CMD ["python", "app.py"]