FROM python:3.13.5-slim WORKDIR /app # Install system dependencies AND install Ollama RUN apt-get update && apt-get install -y \ build-essential \ curl \ git \ zstd \ && curl -fsSL https://ollama.com/install.sh | sh \ && rm -rf /var/lib/apt/lists/* # Copy requirements and install COPY requirements.txt ./ RUN pip3 install --no-cache-dir -r requirements.txt # Copy all your application files COPY . . # Grant execution permissions to your new startup script RUN chmod +x start.sh # Expose Streamlit and Ollama ports EXPOSE 7860 EXPOSE 11434 # Boot up using the script instead of just calling Streamlit directly ENTRYPOINT ["./start.sh"]