@@ -61,7 +61,7 @@ Look at the following Dockerfile you created for the getting started app.
6161
6262```dockerfile
6363# syntax=docker/dockerfile:1
64- FROM node:18 -alpine
64+ FROM node:lts -alpine
6565WORKDIR /app
6666COPY . .
6767RUN yarn install --production
@@ -81,7 +81,7 @@ dependencies if there was a change to the `package.json`.
8181
8282 ``` dockerfile
8383 # syntax=docker/dockerfile:1
84- FROM node:18 -alpine
84+ FROM node:lts -alpine
8585 WORKDIR /app
8686 COPY package.json yarn.lock ./
8787 RUN yarn install --production
@@ -103,10 +103,10 @@ dependencies if there was a change to the `package.json`.
103103 => => transferring dockerfile: 175B
104104 => [internal] load .dockerignore
105105 => => transferring context: 2B
106- => [internal] load metadata for docker.io/library/node:18 -alpine
106+ => [internal] load metadata for docker.io/library/node:lts -alpine
107107 => [internal] load build context
108108 => => transferring context: 53.37MB
109- => [1/5] FROM docker.io/library/node:18 -alpine
109+ => [1/5] FROM docker.io/library/node:lts -alpine
110110 => CACHED [2/5] WORKDIR /app
111111 => [3/5] COPY package.json yarn.lock ./
112112 => [4/5] RUN yarn install --production
@@ -127,10 +127,10 @@ dependencies if there was a change to the `package.json`.
127127 => => transferring dockerfile: 37B
128128 => [internal] load .dockerignore
129129 => => transferring context: 2B
130- => [internal] load metadata for docker.io/library/node:18 -alpine
130+ => [internal] load metadata for docker.io/library/node:lts -alpine
131131 => [internal] load build context
132132 => => transferring context: 450.43kB
133- => [1/5] FROM docker.io/library/node:18 -alpine
133+ => [1/5] FROM docker.io/library/node:lts -alpine
134134 => CACHED [2/5] WORKDIR /app
135135 => CACHED [3/5] COPY package.json yarn.lock ./
136136 => CACHED [4/5] RUN yarn install --production
@@ -182,7 +182,7 @@ for your production build. You can ship the static resources in a static nginx c
182182
183183``` dockerfile
184184# syntax=docker/dockerfile:1
185- FROM node:18 AS build
185+ FROM node:lts AS build
186186WORKDIR /app
187187COPY package* yarn.lock ./
188188RUN yarn install
@@ -194,7 +194,7 @@ FROM nginx:alpine
194194COPY --from=build /app/build /usr/share/nginx/html
195195```
196196
197- In the previous Dockerfile example, it uses the ` node:18 ` image to perform the build (maximizing layer caching) and then copies the output
197+ In the previous Dockerfile example, it uses the ` node:lts ` image to perform the build (maximizing layer caching) and then copies the output
198198into an nginx container.
199199
200200## Summary
0 commit comments