Skip to content

Commit acc2130

Browse files
committed
Docker: Remove /opt/requirements.txt after pip installation.
1 parent 462985b commit acc2130

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tutorials/accelerated-python/brev/dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ COPY tutorials/${ACH_TUTORIAL}/brev/requirements.txt /opt/requirements.txt
1313
RUN set -ex \
1414
&& `# Install Python packages` \
1515
&& pip install --no-cache-dir --root-user-action=ignore -r /opt/requirements.txt \
16+
&& rm -f /opt/requirements.txt \
1617
&& `# Install system packages` \
1718
&& apt-get update -y \
1819
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git-lfs \

tutorials/cuda-cpp/brev/dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ COPY tutorials/${ACH_TUTORIAL}/brev/requirements.txt /opt/requirements.txt
1212
RUN set -ex \
1313
&& `# Install Python packages` \
1414
&& pip install --no-cache-dir --root-user-action=ignore -r /opt/requirements.txt \
15+
&& rm -f /opt/requirements.txt \
1516
&& `# Install system packages` \
1617
&& apt-get update -y \
1718
&& apt-get install -y --no-install-recommends ffmpeg git-lfs \

tutorials/stdpar/brev/docker-recipe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
# Install Python packages
9797
'pip install --no-cache-dir --upgrade pip',
9898
'pip install --no-cache-dir --root-user-action=ignore -r /opt/requirements.txt',
99+
'rm -f /opt/requirements.txt',
99100

100101
# Build and install AdaptiveCpp
101102
'git clone --depth=1 --shallow-submodules --recurse-submodules -b develop https://github.com/AdaptiveCpp/AdaptiveCpp',

0 commit comments

Comments
 (0)