node.jsdockerbuildpackjib

Equivalent of Google's JIB for Node.JS?


Is there one equivalent of Google's JIB or BuildPacks for Node.JS ?

It is my understanding that JIB allows to build OCI container images from within the project's build tool like Gradle or Maven, as a developer we only have to include a plugin into the build and are able to package up the application into a container and having JIB implement all the best practices of packing up a Java application into container with no questions asked.

I have search around but have not found something equivalent for the Node.JS ecosystem. It should be possible just into a node developer time dependency and it take care on packaging up my javascript/typescript Express.js for example app into a docker container or OCI image.

Thank you, Oscar


Solution

  • For posterity, I'll list some NodeJS-native Docker image creation packages (these usually can be added to your project's package.json). In no particular order:

    I did try Dockta and it has SUPER simple one-liner docker file/image build (either a simple package.json script or direct command line), it works nicely.