GramAPP / Dockerfile
Merlintxu's picture
Update Dockerfile
ff4004b
raw
history blame
428 Bytes
# 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