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.
This commit is contained in:
N7KnightOne 2023-05-31 15:53:50 -07:00 committed by GitHub
parent f481c5cfeb
commit 2953dc993c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"]
CMD ["node", "index.js"]