Created
April 15, 2025 16:12
-
-
Save clintval/71c02c32cf6fad09d15b2508c5b94336 to your computer and use it in GitHub Desktop.
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
################################################################################ | |
# 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