background
- I created a container using the ubuntu14.04 image
- installed my runtime environment in the container and installed a lot of libraries. Such as nvm node and other compiled libraries
- I commit the container where I installed the tool library into an image
- I created a dockerfile FROM to fill in the image of my commit just now
question: when running RUN node-v, prompt / bin/sh: 1: node: not found
my image is already installed. How to make the RUN command in dockerfile run in the environment variable of my commit image during build