Cloud API Overview > @adpt/cloud > nodejs > NodeImageBuildOptions > cmd
nodejs.NodeImageBuildOptions.cmd property
Default command to run in container
Signature:
cmd?: string | string[];
Remarks
If this is a string, the Dockerfile used to build the image will use shell form for the command, i.e., CMD <cmd value>
. If this is an array of string, exec form will be used instead, i.e., CMD ["cmd[0]", "cmd[1]", "cmd[2]", ...]
.
If cmd
is not specified, the default command of node
with the value of main
from the top-level package.json will be used.