From 79f0050ac8f310d40535192c5a245c6e6033ee09 Mon Sep 17 00:00:00 2001 From: Eric Doughty-Papassideris Date: Tue, 5 Mar 2024 15:56:29 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20tdrive-node:=20Use=20`npm=20ci`?= =?UTF-8?q?=20instead=20of=20`yarn`=20and=20`npm=20install`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tdrive/docker/tdrive-node/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tdrive/docker/tdrive-node/Dockerfile b/tdrive/docker/tdrive-node/Dockerfile index ccfb0b15..9796e8b8 100755 --- a/tdrive/docker/tdrive-node/Dockerfile +++ b/tdrive/docker/tdrive-node/Dockerfile @@ -24,14 +24,14 @@ FROM node-base as installed-libs COPY backend/node/ . #Install dev dependancies for build RUN export NODE_ENV=development -RUN npm install +RUN npm ci #Build in production mode RUN export NODE_ENV=production RUN npm run build RUN rm -rf node_modules #Install prod dependancies after build -RUN npm install --legacy-peer-deps +RUN npm ci --legacy-peer-deps # Development Stage FROM installed-libs as development @@ -39,7 +39,7 @@ FROM installed-libs as development ENV NODE_ENV=development RUN npm install -g pino-pretty && \ npm install -g tsc-watch && \ - yarn install + npm ci CMD ["npm", "run", "dev:debug"] # Production Stage