Skip to content

Commit 84d426e

Browse files
committed
[Python] set environmental markers
1 parent 365af49 commit 84d426e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ RUN \
4545
echo "[*] cleanup from apt" && \
4646
rm -rf /var/lib/apt/lists/*
4747

48+
# disable checks for `pip` upgrades (we're upgrading anyway)
49+
ENV PIP_DISABLE_PIP_VERSION_CHECK 1
50+
# don't write .pyc files
51+
# https://stackoverflow.com/questions/59732335/is-there-any-disadvantage-in-using-pythondontwritebytecode-in-docker
52+
ENV PYTHONDONTWRITEBYTECODE 1
53+
# ensures console output is not buffered by Docker
54+
ENV PYTHONUNBUFFERED 1
55+
4856
RUN python -m pip --version
4957
RUN python -m pip install pip --upgrade
5058
RUN python -m pip install setuptools wheel build --upgrade

0 commit comments

Comments
 (0)