# Start from official Python image FROM python:3.9-slim # Set working directory WORKDIR /app # Copy requirements first for caching COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy application files COPY . . # Expose port EXPOSE 8501 # Run the application CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]