Modify dockerfile template, so that any command can be executed (#29741)

This commit is contained in:
Marco De La Pierre 2022-06-29 20:02:24 +08:00 committed by GitHub
parent 768d3504dd
commit 58b144c0da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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