From 1c576c65a0d204f7db31427a74765bb2b42451f5 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 18 Oct 2022 19:58:11 -0700 Subject: [PATCH] Don't hardcode CPU architecture in dockerfile The version of mambaforge appropriate for the architecture that the docker build is running on is built this way. Ref https://github.com/pangeo-data/pangeo-docker-images/issues/396 --- base-image/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base-image/Dockerfile b/base-image/Dockerfile index 3379a7aa..1a62e54f 100644 --- a/base-image/Dockerfile +++ b/base-image/Dockerfile @@ -64,7 +64,7 @@ WORKDIR ${HOME} # Install latest mambaforge in ${CONDA_DIR} RUN echo "Installing Mambaforge..." \ - && URL="https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh" \ + && URL="https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-$(uname -m).sh" \ && wget --quiet ${URL} -O installer.sh \ && /bin/bash installer.sh -u -b -p ${CONDA_DIR} \ && rm installer.sh \