summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco De La Pierre <marco.delapierre@gmail.com>2022-06-29 20:02:24 +0800
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-07-20 08:10:41 +0200
commitfbc2e59221afc6122ab6ce297d2db7a08c6bcbd4 (patch)
tree9f8dacd59815c2cae0a02cdb11e45d331ebe5101
parent4f40c9aab93673a10325dfe6e78b57ca84788a0e (diff)
downloadspack-fbc2e59221afc6122ab6ce297d2db7a08c6bcbd4.tar.gz
spack-fbc2e59221afc6122ab6ce297d2db7a08c6bcbd4.tar.bz2
spack-fbc2e59221afc6122ab6ce297d2db7a08c6bcbd4.tar.xz
spack-fbc2e59221afc6122ab6ce297d2db7a08c6bcbd4.zip
Modify dockerfile template, so that any command can be executed (#29741)
-rw-r--r--share/spack/templates/container/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/spack/templates/container/Dockerfile b/share/spack/templates/container/Dockerfile
index be145aef3e..bee6cd2373 100644
--- a/share/spack/templates/container/Dockerfile
+++ b/share/spack/templates/container/Dockerfile
@@ -63,5 +63,6 @@ RUN {% if os_package_update %}{{ os_packages_final.update }} \
{% for label, value in labels.items() %}
LABEL "{{ label }}"="{{ value }}"
{% endfor %}
-ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l"]
+ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l", "-c", "$*", "--" ]
+CMD [ "/bin/bash" ]
{% endif %}