Skip to content

Commit 52925a9

Browse files
JoohoXaenalt
authored andcommitted
Add a checking logic to delete miniconda directory
Signed-off-by: jooho <[email protected]>
1 parent 87b8834 commit 52925a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ RUN cd ~ && \
182182
chmod +x Miniconda3-*-Linux-x86_64.sh && \
183183
bash ./Miniconda3-*-Linux-x86_64.sh -bf -p /opt/miniconda
184184

185+
# Remove tests directory containing test private keys
186+
# conda clean will clean this directory but just in case, it will check the directory existence and remove it
187+
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
188+
185189
ENV PATH=/opt/miniconda/bin:$PATH
186190

187191
# Install specific version of torch

0 commit comments

Comments
 (0)