From f066248fb6ac8b04557a31010792b50c02d749a9 Mon Sep 17 00:00:00 2001 From: Prince Rajpoot Date: Thu, 5 Oct 2023 01:10:14 +0530 Subject: [PATCH] chore: move to npm ci --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f837493..f8a1e6d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # ---- Base Alpine with installed Node ---- -FROM node:14-alpine3.14 AS base +FROM node:16-alpine3.14 AS base # install node RUN apk add --update \ @@ -12,9 +12,7 @@ WORKDIR /app COPY . . # install dependencies -# remove package-lock.json with lockVersion: 1 due to problem described in the https://github.com/asyncapi/.github/issues/123 -# remove first run and switch to the `npm ci` when mentioned issue will be resolved -RUN rm package-lock.json; npm install +RUN npm ci # build to a production Javascript RUN npm run build:prod