From 70be612f435981fc43892b95b9ec461fde8323a0 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Mon, 18 Jul 2022 10:31:16 +0200 Subject: containerize: fix missing environment activation (#31596) --- share/spack/templates/container/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'share') diff --git a/share/spack/templates/container/Dockerfile b/share/spack/templates/container/Dockerfile index 7005c0cfae..b10dcf084a 100644 --- a/share/spack/templates/container/Dockerfile +++ b/share/spack/templates/container/Dockerfile @@ -19,8 +19,7 @@ RUN mkdir {{ paths.environment }} \ {{ manifest }} > {{ paths.environment }}/spack.yaml # Install the software, remove unnecessary deps -RUN spack install --fail-fast && \ - spack gc -y +RUN cd {{ paths.environment }} && spack env activate . && spack install --fail-fast && spack gc -y {% if strip %} # Strip all the binaries -- cgit v1.2.3-70-g09d2