From 2953dc993cf313ac4bb85d9c7b7d172a2440ad47 Mon Sep 17 00:00:00 2001 From: N7KnightOne <47005674+N7KnightOne@users.noreply.github.com> Date: Wed, 31 May 2023 15:53:50 -0700 Subject: [PATCH] Fixed copy commands In a Dockerfile, when using COPY with more than one source file, the destination must be a directory and end with a /. Or, you can specify each file that needs to be copied. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ca4098..3c19494 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ FROM node:18-alpine WORKDIR /app -COPY package*.json . +COPY package.json . +COPY package-lock.json . + RUN npm ci COPY . . -CMD ["node", "index.js"] \ No newline at end of file +CMD ["node", "index.js"]