FROM python:3.9 WORKDIR /code # Install dependencies first (for faster caching) COPY requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # Copy EVERYTHING (including the best_model folder) into the container COPY . /code # Run the streamlit application CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]