From 5cac14c7aed803537b384ab597e96d535fa60e51 Mon Sep 17 00:00:00 2001 From: Data Salaryman Date: Thu, 11 Jan 2024 21:35:13 +0800 Subject: [PATCH] fix(Dockerfile): update Dockerfile to higher version with updated params --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c21e282e6..b809b2c3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12-alpine +FROM node:20-bookworm WORKDIR /opt/app @@ -6,10 +6,10 @@ ENV NODE_ENV production COPY package*.json ./ -RUN npm ci +RUN npm ci COPY . /opt/app -RUN npm install --dev && npm run build +RUN npm install --also=dev && npm run build CMD [ "npm", "start" ] \ No newline at end of file