2953dc993c
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.
11 lines
126 B
Docker
11 lines
126 B
Docker
FROM node:18-alpine
|
|
WORKDIR /app
|
|
|
|
COPY package.json .
|
|
COPY package-lock.json .
|
|
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
CMD ["node", "index.js"]
|