Here is a silly example of running multiple commands via the CMD
instruction in shell-form. I would prefer to use the exec-form, but I don't know how to concatenate the instructions.
shell-form:
CMD mkdir -p ~/my/new/directory/
&& cd ~/my/new/directory
&& touch new.file
exec-form:
CMD ["mkdir","-p","~/my/new/directory/"]
# What goes here?
Can someone provide the equivalent syntax in exec-form?
question from:https://stackoverflow.com/questions/46797348/docker-cmd-exec-form-for-multiple-command-execution