# 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 | |