# Use the official Python image as the base image FROM python:3.9 # Set the working directory to /app WORKDIR /app # Copy the requirements file into the container COPY requirements.txt . # Install the Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the application code into the container COPY . . # Run the Streamlit application CMD ["streamlit", "run", "app.py"]