diff --git a/.docker/aiida-core-base/Dockerfile b/.docker/aiida-core-base/Dockerfile index 40149747e9..4f6cef58a5 100644 --- a/.docker/aiida-core-base/Dockerfile +++ b/.docker/aiida-core-base/Dockerfile @@ -104,6 +104,9 @@ USER ${SYSTEM_UID} # Pin python version here ARG PYTHON_VERSION +# Pin mamba version here +ARG MAMBA_VERSION + # Download and install Micromamba, and initialize Conda prefix. # # Similar projects using Micromamba: @@ -134,7 +137,7 @@ RUN set -x && \ --prefix="${CONDA_DIR}" \ --yes \ "${PYTHON_SPECIFIER}" \ - 'mamba' && \ + "mamba=${MAMBA_VERSION}" && \ rm micromamba && \ # Pin major.minor version of python mamba list python | grep '^python ' | tr -s ' ' | cut -d ' ' -f 1,2 >> "${CONDA_DIR}/conda-meta/pinned" && \ diff --git a/.docker/docker-bake.hcl b/.docker/docker-bake.hcl index 66f7bf5603..8ff359b772 100644 --- a/.docker/docker-bake.hcl +++ b/.docker/docker-bake.hcl @@ -51,6 +51,7 @@ target "aiida-core-base" { platforms = "${PLATFORMS}" args = { "PYTHON_VERSION" = "${PYTHON_VERSION}" + "MAMBA_VERSION" = "1.5.2" } } target "aiida-core-with-services" {