Clean up Miniforge installer after installation#199
Open
Clean up Miniforge installer after installation#199
Conversation
Remove installer script after conda installation.
|
FYI, you can use "heredoc" syntax for FROM debian:11
ARG MINIFORGE_VERSION="24.11.2-1"
RUN <<EOF
apt-get update -y
apt-get install -y vim wget git
apt-get clean all
EOF
RUN groupadd conda-users
RUN <<EOF
wget -O Miniforge3-installer.sh https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_VERSION}/Miniforge3-${MINIFORGE_VERSION}-Linux-x86_64.sh
bash Miniforge3-installer.sh -b -p /opt/conda
rm Miniforge3-installer.sh
chgrp -R conda-users /opt/conda/ && chmod -R 775 /opt/conda/
/opt/conda/bin/conda clean -afy
echo "source /opt/conda/etc/profile.d/conda.sh" >> /root/.bashrc
EOF
ENV PATH=/opt/conda/bin:$PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove installer script after conda installation.