ayushkhare12

Spoorthi Docker Anaconda

Sep 17th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.92 KB | None | 0 0
  1. FROM frolvlad/alpine-glibc:alpine-3.10
  2.  
  3. ENV CONDA_DIR="/opt/conda"
  4. ENV PATH="$CONDA_DIR/bin:$PATH"
  5.  
  6. # Install conda
  7. RUN CONDA_VERSION="4.5.12" && \
  8.     CONDA_MD5_CHECKSUM="866ae9dff53ad0874e1d1a60b1ad1ef8" && \
  9.     \
  10.     apk add --no-cache --virtual=.build-dependencies wget ca-certificates bash && \
  11.     \
  12.     mkdir -p "$CONDA_DIR" && \
  13.     wget "http://repo.continuum.io/miniconda/Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh" -O miniconda.sh && \
  14.     echo "$CONDA_MD5_CHECKSUM  miniconda.sh" | md5sum -c && \
  15.     bash miniconda.sh -f -b -p "$CONDA_DIR" && \
  16.     echo "export PATH=$CONDA_DIR/bin:\$PATH" > /etc/profile.d/conda.sh && \
  17.     rm miniconda.sh && \
  18.     \
  19.     conda update --all --yes && \
  20.     conda config --set auto_update_conda False && \
  21.     rm -r "$CONDA_DIR/pkgs/" && \
  22.     \
  23.     apk del --purge .build-dependencies && \
  24.     \
  25.     mkdir -p "$CONDA_DIR/locks" && \
  26.     chmod 777 "$CONDA_DIR/locks"
Add Comment
Please, Sign In to add comment