From 892f84772824f03a7b6dc91ac56a31772acd5f98 Mon Sep 17 00:00:00 2001 From: Erfanium Date: Fri, 24 Mar 2023 00:34:09 +0330 Subject: [PATCH] fix(docs): remove deprecated usage of npm ci --only --- pages/en/docs/guides/nodejs-docker-webapp.md | 4 ++-- pages/id/docs/guides/nodejs-docker-webapp.md | 4 ++-- pages/ko/docs/guides/nodejs-docker-webapp.md | 8 ++++---- pages/ru/docs/guides/nodejs-docker-webapp.md | 4 ++-- pages/zh-cn/docs/guides/nodejs-docker-webapp.md | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pages/en/docs/guides/nodejs-docker-webapp.md b/pages/en/docs/guides/nodejs-docker-webapp.md index cf374090967b0..f6424c23460b5 100644 --- a/pages/en/docs/guides/nodejs-docker-webapp.md +++ b/pages/en/docs/guides/nodejs-docker-webapp.md @@ -109,7 +109,7 @@ COPY package*.json ./ RUN npm install # If you are building your code for production -# RUN npm ci --only=production +# RUN npm ci --omit=dev ``` Note that, rather than copying the entire working directory, we are only copying @@ -156,7 +156,7 @@ COPY package*.json ./ RUN npm install # If you are building your code for production -# RUN npm ci --only=production +# RUN npm ci --omit=dev # Bundle app source COPY . . diff --git a/pages/id/docs/guides/nodejs-docker-webapp.md b/pages/id/docs/guides/nodejs-docker-webapp.md index 06a8e6629d452..bff157354507e 100644 --- a/pages/id/docs/guides/nodejs-docker-webapp.md +++ b/pages/id/docs/guides/nodejs-docker-webapp.md @@ -89,7 +89,7 @@ COPY package*.json ./ RUN npm install # If you are building your code for production -# RUN npm ci --only=production +# RUN npm ci --omit=dev ``` Perhatikan bahwa, daripada menyalin seluruh direktori kerja, kami hanya menyalin berkas `package.json`. Ini memungkinkan kami untuk memanfaatkan Docker yang di-cache lapisan. bitJudo memiliki penjelasan yang bagus tentang ini [di sini](http://bitjudo.com/blog/2014/03/13/building-efficient-dockerfiles-node-dot-js/). Selanjutnya, perintah `npm ci`, yang ditentukan dalam komentar, membantu menyediakan build yang lebih cepat, andal, dan dapat direproduksi untuk lingkungan produksi. Anda dapat membaca lebih lanjut tentang ini [di sini](https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable). @@ -128,7 +128,7 @@ COPY package*.json ./ RUN npm install # If you are building your code for production -# RUN npm ci --only=production +# RUN npm ci --omit=dev # Bundle app source COPY . . diff --git a/pages/ko/docs/guides/nodejs-docker-webapp.md b/pages/ko/docs/guides/nodejs-docker-webapp.md index 929856f1ec8f6..6c6b814c7cf63 100644 --- a/pages/ko/docs/guides/nodejs-docker-webapp.md +++ b/pages/ko/docs/guides/nodejs-docker-webapp.md @@ -201,7 +201,7 @@ COPY package*.json ./ RUN npm install # If you are building your code for production -# RUN npm ci --only=production +# RUN npm ci --omit=dev ``` --> @@ -225,7 +225,7 @@ COPY package*.json ./ RUN npm install # 프로덕션을 위한 코드를 빌드하는 경우 -# RUN npm ci --only=production +# RUN npm ci --omit=dev ```