# Use a lightweight Python image FROM python:3.11-slim # Set working directory WORKDIR /app # Copy all files into the container COPY . /app # Install system dependencies (optional but useful for pandas/numpy) RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the Hugging Face expected port EXPOSE 7860 # Run Streamlit app on the correct port and interface CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]