Build environment for packing node.js applications into a single executable.
582
Creates a docker image, that contains a build environment for packing node.js applications into a single executable. Contains precompiled node sources. This way the build process is a lot faster!
If you forked this, rename property "user" in package.json to your docker hub username.
npm run build
npm run container
npm run push
npm run delete
This example creates a stand alone binary including node and the app sources.
npm run container
mkdir example
echo "console.log('hello world');" > example/hello-world.js
# creates binary "hello-world" from "example/hello-world.js"
nodec -r example/ --skip-npm-install -o hello-world example/hello-world.js
# shrinks binary (36M > 12M)
upx hello-world
Content type
Image
Digest
Size
250.3 MB
Last updated
over 7 years ago
docker pull benjhess/nodec