FROM python:3.10-slim WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y build-essential git && rm -rf /var/lib/apt/lists/* # Copy dependencies COPY requirements.txt . # Install Python packages RUN pip install --upgrade pip RUN pip install -r requirements.txt # Copy your source code COPY src/ ./src/ COPY models/ ./models/ # Run the Streamlit app EXPOSE 7860 CMD ["streamlit", "run", "src/app.py", "--server.port=7860", "--server.address=0.0.0.0"]