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:
parent
f481c5cfeb
commit
2953dc993c
|
@ -1,7 +1,9 @@
|
||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json .
|
COPY package.json .
|
||||||
|
COPY package-lock.json .
|
||||||
|
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
Loading…
Reference in a new issue