I tried different combinations but the one that is not explicitly shown here is:
entrypoint: ["bash", "-c"]
command: |
'
echo "Container running"
sleep infinity
'
The entrypoint expects one big string to compile. |
preserves line breaks exactly as they appear in the string.