diff --git a/locale/en/docs/guides/nodejs-docker-webapp.md b/locale/en/docs/guides/nodejs-docker-webapp.md index e146ba99af937..57489cbc9b79f 100644 --- a/locale/en/docs/guides/nodejs-docker-webapp.md +++ b/locale/en/docs/guides/nodejs-docker-webapp.md @@ -80,11 +80,11 @@ touch Dockerfile Open the `Dockerfile` in your favorite text editor The first thing we need to do is define from what image we want to build from. -Here we will use the latest LTS (long term support) version `8` of `node` +Here we will use the latest LTS (long term support) version `10` of `node` available from the [Docker Hub](https://hub.docker.com/): ```docker -FROM node:8 +FROM node:10 ``` Next we create a directory to hold the application code inside the image, this @@ -134,17 +134,16 @@ EXPOSE 8080 ``` Last but not least, define the command to run your app using `CMD` which defines -your runtime. Here we will use the basic `npm start` which will run -`node server.js` to start your server: +your runtime. Here we will use `node server.js` to start your server: ```docker -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` Your `Dockerfile` should now look like this: ```docker -FROM node:8 +FROM node:10 # Create app directory WORKDIR /usr/src/app @@ -162,7 +161,7 @@ RUN npm install COPY . . EXPOSE 8080 -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` ## .dockerignore file @@ -195,7 +194,7 @@ $ docker images # Example REPOSITORY TAG ID CREATED -node 8 1934b0b038d1 5 days ago +node 10 1934b0b038d1 5 days ago /node-web-app latest d64d3505b0d2 1 minute ago ``` diff --git a/locale/fa/docs/guides/nodejs-docker-webapp.md b/locale/fa/docs/guides/nodejs-docker-webapp.md index 434154a2f0535..f22dac0d58d45 100644 --- a/locale/fa/docs/guides/nodejs-docker-webapp.md +++ b/locale/fa/docs/guides/nodejs-docker-webapp.md @@ -82,11 +82,11 @@ touch Dockerfile Open the `Dockerfile` in your favorite text editor The first thing we need to do is define from what image we want to build from. -Here we will use the latest LTS (long term support) version `8` of `node` +Here we will use the latest LTS (long term support) version `10` of `node` available from the [Docker Hub](https://hub.docker.com/): ```docker -FROM node:8 +FROM node:10 ``` Next we create a directory to hold the application code inside the image, this @@ -134,17 +134,16 @@ EXPOSE 8080 ``` Last but not least, define the command to run your app using `CMD` which defines -your runtime. Here we will use the basic `npm start` which will run -`node server.js` to start your server: +your runtime. Here we will use `node server.js` to start your server: ```docker -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` Your `Dockerfile` should now look like this: ```docker -FROM node:8 +FROM node:10 # Create app directory WORKDIR /usr/src/app @@ -162,7 +161,7 @@ RUN npm install COPY . . EXPOSE 8080 -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` ## .dockerignore file diff --git a/locale/it/docs/guides/nodejs-docker-webapp.md b/locale/it/docs/guides/nodejs-docker-webapp.md index 5b97fef8d03d4..4f064193bfa1a 100644 --- a/locale/it/docs/guides/nodejs-docker-webapp.md +++ b/locale/it/docs/guides/nodejs-docker-webapp.md @@ -82,11 +82,11 @@ touch Dockerfile Open the `Dockerfile` in your favorite text editor The first thing we need to do is define from what image we want to build from. -Here we will use the latest LTS (long term support) version `8` of `node` +Here we will use the latest LTS (long term support) version `10` of `node` available from the [Docker Hub](https://hub.docker.com/): ```docker -FROM node:8 +FROM node:10 ``` Next we create a directory to hold the application code inside the image, this @@ -134,17 +134,16 @@ EXPOSE 8080 ``` Last but not least, define the command to run your app using `CMD` which defines -your runtime. Here we will use the basic `npm start` which will run -`node server.js` to start your server: +your runtime. Here we will use `node server.js` to start your server: ```docker -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` Your `Dockerfile` should now look like this: ```docker -FROM node:8 +FROM node:10 # Create app directory WORKDIR /usr/src/app @@ -162,7 +161,7 @@ RUN npm install COPY . . EXPOSE 8080 -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` ## .dockerignore file diff --git a/locale/ja/docs/guides/nodejs-docker-webapp.md b/locale/ja/docs/guides/nodejs-docker-webapp.md index 13e7d66122683..78033c93ceae9 100644 --- a/locale/ja/docs/guides/nodejs-docker-webapp.md +++ b/locale/ja/docs/guides/nodejs-docker-webapp.md @@ -155,11 +155,11 @@ touch Dockerfile Open the `Dockerfile` in your favorite text editor The first thing we need to do is define from what image we want to build from. -Here we will use the latest LTS (long term support) version `8` of `node` +Here we will use the latest LTS (long term support) version `10` of `node` available from the [Docker Hub](https://hub.docker.com/): ```docker -FROM node:8 +FROM node:10 ``` Next we create a directory to hold the application code inside the image, this @@ -207,17 +207,16 @@ EXPOSE 8080 ``` Last but not least, define the command to run your app using `CMD` which defines -your runtime. Here we will use the basic `npm start` which will run -`node server.js` to start your server: +your runtime. Here we will use `node server.js` to start your server: ```docker -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` Your `Dockerfile` should now look like this: ```docker -FROM node:8 +FROM node:10 # Create app directory WORKDIR /usr/src/app @@ -235,7 +234,7 @@ RUN npm install COPY . . EXPOSE 8080 -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` --> @@ -251,10 +250,10 @@ touch Dockerfile 最初にしなければならないことは、どのイメージから構築したいかを定義することです。 ここでは[Docker Hub](https://hub.docker.com/)から入手できる -`node` の最新の LTS (long term support) バージョン `8` を使います。 +`node` の最新の LTS (long term support) バージョン `10` を使います。 ```docker -FROM node:8 +FROM node:10 ``` 次に、イメージ内にアプリケーションコードを入れるディレクトリを作成します。 @@ -306,13 +305,13 @@ EXPOSE 8080 基本的な `npm start` を使います: ```docker -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` `Dockerfile` はこのようになっているはずです。 ```docker -FROM node:8 +FROM node:10 # アプリケーションディレクトリを作成する WORKDIR /usr/src/app @@ -330,7 +329,7 @@ RUN npm install COPY . . EXPOSE 8080 -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` @@ -171,10 +171,10 @@ touch Dockerfile 가장 먼저 해야 할 것은 어떤 이미지를 사용해서 빌드할 것인지를 정의하는 것입니다. 여기서는 [Docker Hub](https://hub.docker.com/)에 있는 -`node`의 최신 LTS(장기 지원) 버전인 `8`을 사용할 것입니다. +`node`의 최신 LTS(장기 지원) 버전인 `10`을 사용할 것입니다. ```docker -FROM node:8 +FROM node:10 ``` @@ -309,13 +308,13 @@ CMD [ "npm", "start" ] 여기서는 서버를 구동하도록 `node server.js`을 실행하는 기본 `npm start`을 사용할 것입니다. ```docker -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ``` `Dockerfile`은 다음과 같아야 합니다. ```docker -FROM node:8 +FROM node:10 # 앱 디렉터리 생성 WORKDIR /usr/src/app @@ -333,7 +332,7 @@ RUN npm install COPY . . EXPOSE 8080 -CMD [ "npm", "start" ] +CMD [ "node", "server.js" ] ```