From cf5b8d58a5198bd32d05df394ab6fdd58859c531 Mon Sep 17 00:00:00 2001 From: ibthideveloper <99708892+ibthideveloper@users.noreply.github.com> Date: Tue, 12 Sep 2023 07:40:30 +0530 Subject: [PATCH] **newer node syntax for production only installing --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index db88444..b9ee115 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,10 @@ WORKDIR /app COPY package.json ./ COPY client/package.json client/ -RUN npm install --only=production +RUN npm install --omit=dev COPY server/package.json server/ -RUN npm run install-server --only=production +RUN npm run install-server --omit=dev COPY client/ client/ RUN npm run build --prefix client