Spaces:
Running
Running
Update Dockerfile
Browse files- 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 |
|