This needs it’s own post: Dockerfile Best Practices
Always use the array syntax when using CMD and ENTRYPOINT.
If you use the … syntax without the array, docker prepends
/bin/sh -cto your command.
So that means that if you want to say, run something like a shell script that invokes processes, you need to wrap that
ENTRYPOINT in an array. Even if it’s just a singleton.
The entire article is a good read, it resolved a few niggles I was having.