From 1922f6ebae2516b2c5d888b2bd0488c85877008f Mon Sep 17 00:00:00 2001 From: Ramin Date: Tue, 23 Jul 2024 16:03:23 +0330 Subject: [PATCH 1/2] change Dockerfile --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 91f7b78..cd6e621 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ #https://hub.docker.com/_/node?tab=tags&page=1 -FROM node:18.14.0 +FROM node:20.14.0 WORKDIR /usr/src/app @@ -12,5 +12,6 @@ COPY test ./test RUN npm ci RUN npm i -g pm2 -RUN npm run build #It will run prebuild script for generating swagger spec by tsoa as well +RUN npm i -g yarn +RUN yarn build #It will run prebuild script for generating swagger spec by tsoa as well RUN cp -rv public ./dist From 385dd1902cd194550eb2cdf355592e95428be7f9 Mon Sep 17 00:00:00 2001 From: Ramin Date: Tue, 23 Jul 2024 16:19:37 +0330 Subject: [PATCH 2/2] change Dockerfile to use yarn --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cd6e621..7cce7b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,7 @@ COPY src ./src COPY migrations ./migrations COPY test ./test -RUN npm ci RUN npm i -g pm2 -RUN npm i -g yarn +RUN yarn install --frozen-lockfile RUN yarn build #It will run prebuild script for generating swagger spec by tsoa as well RUN cp -rv public ./dist