Skip to content

Clean up Miniforge installer after installation#199

Open
sujen1412 wants to merge 2 commits intodevelopfrom
feature/remove-miniconda-installer
Open

Clean up Miniforge installer after installation#199
sujen1412 wants to merge 2 commits intodevelopfrom
feature/remove-miniconda-installer

Conversation

@sujen1412
Copy link
Collaborator

Remove installer script after conda installation.

Remove installer script after conda installation.
@sujen1412 sujen1412 requested a review from grallewellyn March 25, 2026 18:01
@sujen1412 sujen1412 self-assigned this Mar 25, 2026
@chuckwondo
Copy link

FYI, you can use "heredoc" syntax for RUN commands in your Dockerfile, which makes it easier to read and maintain:

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

Copy link
Member

@grallewellyn grallewellyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added && and approve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants