# Use a lightweight Python version FROM python:3.10-slim # Set up the working directory WORKDIR /app # Copy the requirements file first (better for caching) COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the app code COPY . . # Expose the port that Hugging Face expects (7860) EXPOSE 7860 # Run Streamlit on port 7860 CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]