# Use an official Python runtime as a parent image FROM python:3.13-slim # Set the working directory in the container WORKDIR /app # Copy requirements file first to leverage Docker layer caching COPY requirements.txt . # Install any needed packages (e.g., streamlit and dependencies) RUN pip install --no-cache-dir -r requirements.txt # Copy the current directory contents into the container at /app COPY . . # Make port 8501 available (Streamlit default port) EXPOSE 8501 # Run the Streamlit app CMD ["streamlit", "run", "app.py"]