# Use an official Python base image FROM python:3.8 # Set the working directory in the container WORKDIR /app # Set MPLCONFIGDIR environment variable to a writable directory ENV MPLCONFIGDIR=/tmp/matplotlib_config # Copy the requirements file into the container COPY requirements.txt /app/ # Install dependencies RUN pip install -r requirements.txt # Install ollama RUN curl -fsSL https://ollama.com/install.sh | sh # Copy the Streamlit app script into the container COPY main.py /app/ # Expose the port Streamlit runs on EXPOSE 8501 # Command to run the Streamlit app CMD ["python", "main.py"]