Skip to content

Instantly share code, notes, and snippets.

@clintval
Created April 15, 2025 16:12
Show Gist options
  • Save clintval/71c02c32cf6fad09d15b2508c5b94336 to your computer and use it in GitHub Desktop.
Save clintval/71c02c32cf6fad09d15b2508c5b94336 to your computer and use it in GitHub Desktop.
################################################################################
# Update and install OS packages
# https://docs.anaconda.com/anaconda/install/silent-mode/#linux-macos
################################################################################
RUN curl --location --fail --remote-name \
https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh \
&& bash Miniforge3-Linux-x86_64.sh -b -p /opt/conda -u \
&& rm Miniforge3-Linux-x86_64.sh
###############################################################################
# Install the conda workflow environment
################################################################################
ENV PATH=/opt/conda/bin:$PATH
COPY environment.yaml /root/
RUN mamba env create -f /root/environment.yaml
ENV PATH=/opt/conda/envs/my-custom-env/bin:$PATH
RUN find /opt/conda/ -name direct_url.json -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment