containerize: fix missing environment activation (#31596)

This commit is contained in:
Massimiliano Culpo 2022-07-18 10:31:16 +02:00 committed by GitHub
parent c589f97cf0
commit 70be612f43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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