Skip to content

Commit f6b14ae

Browse files
committed
Clean up after apt installs
1 parent 841e4a7 commit f6b14ae

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

cuvs-bench/cpu/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ echo ". /opt/conda/etc/profile.d/conda.sh; conda activate base" >> /etc/bash.bas
2121
EOF
2222

2323
# we need perl temporarily for the remaining benchmark perl scripts
24-
RUN apt-get update
25-
26-
RUN apt-get install perl patch -y
24+
RUN <<EOF
25+
apt-get update
26+
apt-get install -y \
27+
patch \
28+
perl
29+
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
30+
EOF
2731

2832
# update everything before other environment changes, to ensure mixing
2933
# an older conda with newer packages still works well

cuvs-bench/gpu/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ echo ". /opt/conda/etc/profile.d/conda.sh; conda activate base" >> /etc/bash.bas
2424
EOF
2525

2626
# we need perl temporarily for the remaining benchmark perl scripts
27-
RUN apt-get update
28-
29-
RUN apt-get install perl patch -y
27+
RUN <<EOF
28+
apt-get update
29+
apt-get install -y \
30+
patch \
31+
perl
32+
rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
33+
EOF
3034

3135
RUN <<EOF
3236
mamba update --all -y -n base

0 commit comments

Comments
 (0)