# Use Python slim image FROM python:3.11-slim # Set working directory WORKDIR /app # Copy project files COPY . /app # Upgrade pip RUN pip install --upgrade pip # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose Streamlit port EXPOSE 8501 # Set environment variable for Streamlit ENV STREAMLIT_SERVER_HEADLESS=true ENV STREAMLIT_SERVER_PORT=8501 ENV PYTHONUNBUFFERED=1 # Command to run Streamlit CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]