Skip to content

Commit 4256727

Browse files
committed
chore: don't create pyc files
Saves another ~14 MB from the image. Signed-off-by: Mike Fiedler <miketheman@gmail.com>
1 parent 362fa8d commit 4256727

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ FROM python:3.11.8-slim-bullseye
55
# Allow statements and log messages to immediately appear in the logs
66
ENV PYTHONUNBUFFERED True
77

8+
# Don't create .pyc files
9+
ENV PYTHONDONTWRITEBYTECODE True
10+
811
# Put our application on the PYTHONPATH
912
ENV PYTHONPATH /app
1013

0 commit comments

Comments
 (0)