FROM python:3.10-slim ENV PYTHONUNBUFFERED=1 WORKDIR /app RUN apt-get update && apt-get install -y \ git \ curl \ build-essential \ zstd \ && rm -rf /var/lib/apt/lists/* # Install Ollama RUN curl -fsSL https://ollama.com/install.sh | sh COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . RUN mkdir -p temp_dir EXPOSE 7860 CMD ["python", "app.py"]