@@ -155,11 +155,11 @@ touch Dockerfile
155155Open the `Dockerfile` in your favorite text editor
156156
157157The first thing we need to do is define from what image we want to build from.
158- Here we will use the latest LTS (long term support) version `10 ` of `node`
158+ Here we will use the latest LTS (long term support) version `12 ` of `node`
159159available from the [Docker Hub](https://hub.docker.com/):
160160
161161```docker
162- FROM node:10
162+ FROM node:12
163163```
164164
165165Next we create a directory to hold the application code inside the image, this
@@ -216,7 +216,7 @@ CMD [ "node", "server.js" ]
216216Your `Dockerfile` should now look like this:
217217
218218```docker
219- FROM node:10
219+ FROM node:12
220220
221221# Create app directory
222222WORKDIR /usr/src/app
@@ -250,10 +250,10 @@ touch Dockerfile
250250
251251最初にしなければならないことは、どのイメージから構築したいかを定義することです。
252252ここでは[ Docker Hub] ( https://hub.docker.com/ ) から入手できる
253- ` node ` の最新の LTS (long term support) バージョン ` 10 ` を使います。
253+ ` node ` の最新の LTS (long term support) バージョン ` 12 ` を使います。
254254
255255``` docker
256- FROM node:10
256+ FROM node:12
257257```
258258
259259次に、イメージ内にアプリケーションコードを入れるディレクトリを作成します。
@@ -311,7 +311,7 @@ CMD [ "node", "server.js" ]
311311` Dockerfile ` はこのようになっているはずです。
312312
313313``` docker
314- FROM node:10
314+ FROM node:12
315315
316316# アプリケーションディレクトリを作成する
317317WORKDIR /usr/src/app
@@ -378,7 +378,7 @@ $ docker images
378378
379379# Example
380380REPOSITORY TAG ID CREATED
381- node 8 1934b0b038d1 5 days ago
381+ node 12 1934b0b038d1 5 days ago
382382<your username>/node-web-app latest d64d3505b0d2 1 minute ago
383383```
384384
@@ -400,7 +400,7 @@ $ docker images
400400
401401# 例
402402REPOSITORY TAG ID CREATED
403- node 8 1934b0b038d1 5 days ago
403+ node 12 1934b0b038d1 5 days ago
404404< your username> /node-web-app latest d64d3505b0d2 1 minute ago
405405```
406406
0 commit comments