From db549c2ad7858d0ad09f0d1d7876f4eefeda9644 Mon Sep 17 00:00:00 2001 From: DeveloperAnonymous <40847862+DeveloperAnonymous@users.noreply.github.com> Date: Wed, 10 Aug 2022 01:57:19 -0400 Subject: [PATCH 1/2] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae4ec77..5f6841c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM node:16-alpine AS deps RUN apk add --no-cache libc6-compat WORKDIR /app -COPY package.json package-lock.json ./ +COPY package*.json ./ RUN npm ci # Rebuild source code only when needed @@ -35,4 +35,4 @@ EXPOSE 3000 ENV PORT 3000 -CMD [ "node", "server.js" ] \ No newline at end of file +CMD [ "node", "server.js" ] From fbc66efd94454c863c62d3cb41928163c1fad44c Mon Sep 17 00:00:00 2001 From: DeveloperAnonymous <40847862+DeveloperAnonymous@users.noreply.github.com> Date: Wed, 10 Aug 2022 01:57:43 -0400 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5f6841c..36e997c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM node:16-alpine AS deps RUN apk add --no-cache libc6-compat WORKDIR /app COPY package*.json ./ -RUN npm ci +RUN npm i # Rebuild source code only when needed FROM node:16 AS builder