summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-07-18 10:31:16 +0200
committerGitHub <noreply@github.com>2022-07-18 10:31:16 +0200
commit70be612f435981fc43892b95b9ec461fde8323a0 (patch)
treeb7073bdc726bc283af973fa624b921053a554b83 /share
parentc589f97cf07d15b3d0ac28e16188410a56c18aaf (diff)
downloadspack-70be612f435981fc43892b95b9ec461fde8323a0.tar.gz
spack-70be612f435981fc43892b95b9ec461fde8323a0.tar.bz2
spack-70be612f435981fc43892b95b9ec461fde8323a0.tar.xz
spack-70be612f435981fc43892b95b9ec461fde8323a0.zip
containerize: fix missing environment activation (#31596)
Diffstat (limited to 'share')
-rw-r--r--share/spack/templates/container/Dockerfile3
1 files changed, 1 insertions, 2 deletions
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