remove PYTHONDONTWRITEBYTECODE completely from Dockerfile as any value is interpreted as true

This commit is contained in:
badblocks 2025-04-17 18:42:01 -07:00
parent 1c702e9e31
commit 6c631d7a4b

View file

@ -1,9 +1,8 @@
# Pull base image # Pull base image
FROM python:3.12.2-bookworm 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 PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 0
# Create and set work directory called `app` # Create and set work directory called `app`
RUN mkdir -p /code RUN mkdir -p /code