remove PYTHONDONTWRITEBYTECODE completely from Dockerfile as any value is interpreted as true
This commit is contained in:
parent
1c702e9e31
commit
6c631d7a4b
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue