FROM python:3.10-slim WORKDIR /app # Copy dependency file COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the project COPY . . # Expose Streamlit default port EXPOSE 8501 # Run Streamlit CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]