From 58b144c0dae88d6a06d3d138c077c4c70909c5f7 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(-) (limited to 'share') diff --git a/share/spack/templates/container/Dockerfile b/share/spack/templates/container/Dockerfile index 67b8986a00..d7d5e14731 100644 --- a/share/spack/templates/container/Dockerfile +++ b/share/spack/templates/container/Dockerfile @@ -62,5 +62,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-60-g2f50