Changes between Version 7 and Version 8 of Nodejs


Ignore:
Timestamp:
11/10/22 07:22:04 (2 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Nodejs

    v7 v8  
    4242}}}
    4343
    44 3.create Dockerfile with following content
     443. Create Dockerfile with following content
    4545{{{
    4646FROM node:16
     
    7272This will prevent your local modules and debug logs from being copied onto your Docker image and possibly overwriting modules installed within your image.[[br]]
    7373
     745. Build your image
     75{{{
     76[krit mini NodeJS]$ docker build . -t ateam/node-web-app
     77}}}
    7478
     796. Run container
     80{{{
     81[krit mini NodeJS]$ docker run --name nodejs -p 49160:8080 -d ateam/node-web-app
     82}}}