# Use Python 3.10 to satisfy matplotlib>=3.10.0 FROM python:3.10-slim # Set the working directory WORKDIR /app # Install required system packages RUN apt-get update && apt-get install -y \ build-essential \ curl \ software-properties-common \ git \ && rm -rf /var/lib/apt/lists/* # Copy files COPY requirements.txt ./ COPY src/ ./src/ # Install Python dependencies RUN pip install --upgrade pip RUN pip install -r requirements.txt # Create uploads directory with full permissions RUN mkdir /app/uploads && chmod 777 /app/uploads # Set the entrypoint to run your Streamlit app CMD ["streamlit", "run", "src/streamlit_app.py"]