I have node js application which is throwing error “ENOENT: no such file or directory”.
docker file
FROM node:slim
RUN apt-get update && apt-get install -y openssh-client
RUN mkdir -p /root/.ssh
COPY id_rsa /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
RUN apt-get install -y git
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
EXPOSE 4000
CMD ["yarn", "start", "dev"]