Suited for applications should be fully bundled inside a container.
Dockerfile
contains kinda hack aroundnpm i
Builder works ourside the application directory. That's why there is no need to store Dockerfile inside the app. The only thing to care about is a version of nodejs.
# Copy stuff to the directory which contains folder with an application
$ cp ./* PATH_TO_THE_APP_PARENT_DIRECTORY
$ sudo ./build.sh