From fbc2e59221afc6122ab6ce297d2db7a08c6bcbd4 Mon Sep 17 00:00:00 2001 From: Marco De La Pierre Date: Wed, 29 Jun 2022 20:02:24 +0800 Subject: Modify dockerfile template, so that any command can be executed (#29741) --- share/spack/templates/container/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 %} -- cgit v1.2.3-70-g09d2