diff options
author | Marco De La Pierre <marco.delapierre@gmail.com> | 2022-06-29 20:02:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 12:02:24 +0000 |
commit | 58b144c0dae88d6a06d3d138c077c4c70909c5f7 (patch) | |
tree | 649e7b0030b19ab627081299b05ebecd90a41d3c | |
parent | 768d3504dd9b1f3ab3492bbdf97dc8768843429f (diff) | |
download | spack-58b144c0dae88d6a06d3d138c077c4c70909c5f7.tar.gz spack-58b144c0dae88d6a06d3d138c077c4c70909c5f7.tar.bz2 spack-58b144c0dae88d6a06d3d138c077c4c70909c5f7.tar.xz spack-58b144c0dae88d6a06d3d138c077c4c70909c5f7.zip |
Modify dockerfile template, so that any command can be executed (#29741)
-rw-r--r-- | share/spack/templates/container/Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
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 %} |