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