diff --git a/Dockerfile b/Dockerfile index 91f7b78..7cce7b4 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 @@ -10,7 +10,7 @@ COPY src ./src COPY migrations ./migrations 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 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