Browse Source

change yarn.lock to package.lock

Signed-off-by: rizqevo <rizqevo@hotmail.com>
rizqevo 3 years ago
parent
commit
f132dd9baa
1 changed files with 4 additions and 4 deletions
  1. 4 4
      dockerfile

+ 4 - 4
dockerfile

@@ -3,12 +3,12 @@ FROM node:16-alpine AS deps
 # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
 RUN apk add --no-cache libc6-compat
 WORKDIR /app
-COPY package.json yarn.lock ./
-RUN yarn install --frozen-lockfile
+# COPY package.json yarn.lock ./
+# RUN yarn install --frozen-lockfile
 
 # If using npm with a `package-lock.json` comment out above and use below instead
-# COPY package.json package-lock.json ./ 
-# RUN npm ci
+COPY package.json package-lock.json ./ 
+RUN npm ci
 
 # Rebuild the source code only when needed
 FROM node:16-alpine AS builder