Skip to content

Commit 7017147

Browse files
rauno56Derek Lewis
authored and
Derek Lewis
committed
Update Docker example to use most recent LTS
Update node LTS version for the guide for docerizing node applications. Related: #2983, #2953
1 parent 1cfce31 commit 7017147

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

locale/en/docs/guides/nodejs-docker-webapp.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ touch Dockerfile
8080
Open the `Dockerfile` in your favorite text editor
8181

8282
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`
8484
available from the [Docker Hub](https://hub.docker.com/_/node):
8585

8686
```docker
87-
FROM node:14
87+
FROM node:16
8888
```
8989

9090
Next we create a directory to hold the application code inside the image, this
@@ -143,7 +143,7 @@ CMD [ "node", "server.js" ]
143143
Your `Dockerfile` should now look like this:
144144

145145
```docker
146-
FROM node:14
146+
FROM node:16
147147
148148
# Create app directory
149149
WORKDIR /usr/src/app
@@ -194,7 +194,7 @@ $ docker images
194194

195195
# Example
196196
REPOSITORY TAG ID CREATED
197-
node 14 1934b0b038d1 5 days ago
197+
node 16 3b66eb585643 5 days ago
198198
<your username>/node-web-app latest d64d3505b0d2 1 minute ago
199199
```
200200

0 commit comments

Comments
 (0)