# Use the official lightweight Python image. FROM python:3.9-slim # Allow statements and log messages to immediately appear in the Knative logs ENV PYTHONUNBUFFERED True # Copy local code to the container image. WORKDIR /app COPY . /app # Install production dependencies. RUN pip install --no-cache-dir -r requirements.txt # Run the web service on container startup. CMD exec streamlit run app.py --server.enableCORS false