File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ touch Dockerfile
80
80
Open the ` Dockerfile ` in your favorite text editor
81
81
82
82
The first thing we need to do is define from what image we want to build from.
83
- Here we will use the latest LTS (long term support) version ` 14 ` of ` node `
83
+ Here we will use the latest LTS (long term support) version ` 16 ` of ` node `
84
84
available from the [ Docker Hub] ( https://hub.docker.com/_/node ) :
85
85
86
86
``` docker
87
- FROM node:14
87
+ FROM node:16
88
88
```
89
89
90
90
Next we create a directory to hold the application code inside the image, this
@@ -143,7 +143,7 @@ CMD [ "node", "server.js" ]
143
143
Your ` Dockerfile ` should now look like this:
144
144
145
145
``` docker
146
- FROM node:14
146
+ FROM node:16
147
147
148
148
# Create app directory
149
149
WORKDIR /usr/src/app
@@ -194,7 +194,7 @@ $ docker images
194
194
195
195
# Example
196
196
REPOSITORY TAG ID CREATED
197
- node 14 1934b0b038d1 5 days ago
197
+ node 16 3b66eb585643 5 days ago
198
198
< your username> /node-web-app latest d64d3505b0d2 1 minute ago
199
199
```
200
200
You can’t perform that action at this time.
0 commit comments