From 6c631d7a4b2b066574a805ad0af37accc402a3dc Mon Sep 17 00:00:00 2001 From: badbl0cks <4161747+badbl0cks@users.noreply.github.com> Date: Thu, 17 Apr 2025 18:42:01 -0700 Subject: [PATCH] remove PYTHONDONTWRITEBYTECODE completely from Dockerfile as any value is interpreted as true --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9329b0c..9b0aabc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,8 @@ # Pull base image FROM python:3.12.2-bookworm -# Set environment variables (we want to write bytecode as we have multiple workers) +# Set environment variables (we want to write bytecode as we have multiple workers, so omit PYTHONDONTWRITEBYTECODE) ENV PYTHONUNBUFFERED 1 -ENV PYTHONDONTWRITEBYTECODE 0 # Create and set work directory called `app` RUN mkdir -p /code