I wonder if I can create a customized docker image based on the self compiled nodejs? Since the docker image of nodejs from the public repository is with the official nodejs version, it does not suit my need.
Really grateful if I could get some guideline about packing my own nodejs docker image.
I mean like for the Dockerfile. I pack for example
FROM node:9.0.0 but the 9.0.0 is the official nodejs 9.0.0. I have compiled one by changing the source code of nodejs. How can I pack one docker image with my compiled nodejs?
You could just FROM debian (fx) and just apt-get install your stuff or whatever you need to compile your own.
The node image is just everything you need to get started with node, but if you need your own version, you need to start from a other simple base image where you can install what you need, debian/ubuntu/centos/alpine