yashxx07 commited on
Commit
05768c5
·
verified ·
1 Parent(s): d5984d0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -1,5 +1,11 @@
1
  FROM python:3.9
2
 
 
 
 
 
 
 
3
 
4
  WORKDIR /code
5
 
 
1
  FROM python:3.9
2
 
3
+ # Prevents Python from writing pyc files.
4
+ ENV PYTHONDONTWRITEBYTECODE=1
5
+
6
+ # Keeps Python from buffering stdout and stderr to avoid situations where
7
+ # the application crashes without emitting any logs due to buffering.
8
+ ENV PYTHONUNBUFFERED=1
9
 
10
  WORKDIR /code
11