# Dockerfile # Use the official Python image as base FROM python:3.10-slim # Set working directory inside the container WORKDIR /app # Copy your requirements, app code and trained model COPY random_forest_best_model.pkl ./ COPY streamlit_app.py ./ COPY requirements.txt ./ # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose the port Streamlit will run on EXPOSE 8501 # Run Streamlit app CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]