Changes between Version 5 and Version 6 of Nodejs
- Timestamp:
- 11/10/22 07:16:58 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Nodejs
v5 v6 41 41 }); 42 42 }}} 43 44 43 3.create Dockerfile with following content 45 44 {{{ … … 64 63 CMD [ "node", "server.js" ] 65 64 }}} 66 67 65 4. Create a .dockerignore file in the same directory as your Dockerfile with following content: 68 66 {{{ … … 70 68 npm-debug.log 71 69 }}} 72 This will prevent your local modules and debug logs from being copied onto your Docker image and possibly overwriting modules installed within your image. 70 This will prevent your local modules and debug logs from being copied onto your Docker image and possibly overwriting modules installed within your image.[[br]] 73 71 74 72