# Use a lightweight Python image FROM python:3.10-slim # Set working directory WORKDIR /app # Copy requirements first (for caching) COPY requirements.txt . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy project files COPY . . # Expose port 7860 for Streamlit EXPOSE 7860 # Run the Streamlit app on 0.0.0.0:7860 CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]