In the step 4/6 is showing up an error when I try to create this image in Docker:
FROM node:latest
RUN mkdir -p /app/src
WORKDIR /app/src
COPY package.json .
RUN npm install
#IT WILL COPY THE ENTIRE DIR FORECAST TO /app/src INSIDE DOCKER
COPY . .
EXPOSE 3000
CMD {"npm", "start"}
the error that shows is:
=> ERROR [4/6] COPY package.json . 0.0s
------
> [4/6] COPY package.json .:
------
failed to compute cache key: "/package.json" not found: not found