node.js - Can you update node:latest -


from node:latest  run mkdir -p /app/templates workdir /app copy package.json /app/package.json copy *.js /app/ run npm install npm@latest -g  cmd     ["node","/app/index.js"] 

from above dockerfile there way update node when update ubuntu or apt-get update?

or, npm can control?

as russley shaw said, docker pull node:latest download recent node:latest image dockerhub , if downloaded image different local one, overwrite local node:latest image newer downloaded one. then, when docker build, docker recognize node:latest has changed (assuming docker pull node:latest updated local image). then, docker invalidate caches used in building container , rebuild starting first dockerfile instruction at

from node:latest 

you can check when node team last pushed new image dockerhub on dockerhub repo page believe.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -