Skip to content

Commit 1cf8b99

Browse files
committed
unbuffered logs for pyhton
1 parent e65a1ab commit 1cf8b99

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Using official python runtime base image
22
FROM python:3.9.5-slim
33

4+
# Allow statements and log messages to immediately appear in the Knative logs
5+
ENV PYTHONUNBUFFERED True
6+
47
# Set the application directory
5-
WORKDIR /app
8+
ENV APP_HOME /app
9+
WORKDIR $APP_HOME
610

711
# Install our requirements.txt
812
ADD requirements.txt /app/requirements.txt

0 commit comments

Comments
 (0)