Skip to content

Commit 322e2af

Browse files
committed
chore: disable bytecode compilation during pip install
This prevents creation of *.pyc files which helps with: - Reducing container size - Making the build reproducible
1 parent 62a2660 commit 322e2af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.devcontainer/cpp/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ RUN wget -qO /usr/local/share/ca-certificates/Cisco_Umbrella_Root_CA.crt https:/
2727
&& update-ca-certificates
2828

2929
# Install some tools via pip to get more recent versions
30-
RUN --mount=type=bind,source=.devcontainer/cpp/requirements.txt,target=/tmp/requirements.txt \
31-
python3 -m pip install --break-system-packages --require-hashes --no-cache-dir -r /tmp/requirements.txt
30+
RUN --mount=type=bind,source=.devcontainer/cpp/requirements.txt,target=/tmp/requirements.txt \
31+
python3 -m pip install --break-system-packages --require-hashes --no-cache-dir --no-compile -r /tmp/requirements.txt
3232

3333
# Set default environment options for CMake and ccache
3434
ENV CCACHE_DIR=/cache/.ccache \

0 commit comments

Comments
 (0)