-2

ERROR: failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1

FROM node:slim
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
EXPOSE 4000
CMD ["yarn", "start", "dev"]
2
  • 1
    Is there no other error information reported? Typically it will tell you what the problem is or at least point you towards a log file
    – Phil
    Commented Jul 8 at 7:19
  • it is not installing yarn
    – ASIF KAIF
    Commented Jul 8 at 7:21

0

Browse other questions tagged or ask your own question.