# Use a Python base image FROM python:3.9-slim-buster # Set the working directory in the container WORKDIR /app # Copy the requirements file into the container COPY requirements.txt . # Install the dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the saved model and key components # You'll need to upload 'model_and_key_components.pkl' to the same directory as your app.py COPY model_and_key_components.pkl . # Copy the Streamlit application COPY app.py . # Expose the port Streamlit runs on EXPOSE 7860 # Command to run the Streamlit application CMD ["streamlit", "run", "app.py"]