File size: 428 Bytes
029f978 a1743d7 029f978 a1743d7 029f978 a1743d7 029f978 a1743d7 ff4004b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# 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
|