Skip to content

Commit 67eb631

Browse files
JoohoXaenalt
authored andcommitted
Add a checking logic to delete miniconda directory
Signed-off-by: jooho <[email protected]>
1 parent 2a189ba commit 67eb631

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ RUN cd ~ && \
182182
bash ./Miniconda3-*-Linux-x86_64.sh -bf -p /opt/miniconda
183183

184184
# Remove tests directory containing test private keys
185-
RUN rm -r /opt/miniconda/pkgs/conda-content-trust-*/info/test/tests
185+
# conda clean will clean this directory but just in case, it will check the directory existence and remove it
186+
RUN if [ -d " /opt/miniconda/pkgs/conda-content-trust-*/info/test/tests" ]; then rm -rf "/opt/miniconda/pkgs/conda-content-trust-*/info/test/tests"; fi
186187

187188
ENV PATH=/opt/miniconda/bin:$PATH
188189

0 commit comments

Comments
 (0)