# Base image: lightweight Python 3.9 FROM python:3.9-slim-buster # Set container working directory WORKDIR /app # Copy project files into the container COPY . /app # Environment variable for Streamlit configuration ENV STREAMLIT_CONFIG_DIR=/app/.streamlit # Create the Streamlit configuration directory RUN mkdir -p ${STREAMLIT_CONFIG_DIR} # Install dependencies (no cache) RUN pip install --no-cache-dir -r requirements.txt # Default command to run the Streamlit app CMD ["streamlit", "run", "app.py", \ "--server.port=8501", \ "--server.address=0.0.0.0", \ "--server.enableXsrfProtection=false"]