Тоше
08/24/2021, 2:20 PMError: @prisma/client did not initialize yet. Please run \"prisma generate\" and try to import it again.\nIn case this error is unexpected for you, please report it in <https://github.com/prisma/prisma/issues>\n at new PrismaClient (/usr/app/node_modules/.prisma/client/index.js:3:11)\n at /usr/app/main.js:28701:20\n at Plugin.exec (/usr/app/node_modules/avvio/plugin.js:132:19)\n at Boot.loadPlugin (/usr/app/node_modules/avvio/plugin.js:267:10)\n at Task.release (/usr/app/node_modules/fastq/queue.js:149:16)\n at worked (/usr/app/node_modules/fastq/queue.js:201:10)\n at /usr/app/node_modules/avvio/plugin.js:270:7\n at done (/usr/app/node_modules/avvio/plugin.js:202:5)\n at check (/usr/app/node_modules/avvio/plugin.js:226:9)\n at node:internal/process/task_queues:141:7","type":"Error","msg":"@prisma/client did not initialize yet. Please run \"prisma generate\" and try to import it again.\nIn case this error is unexpected for you, please report it in <https://github.com/prisma/prisma/issues>"}
prisma/cli is required to run prisma generateRyan
08/24/2021, 2:57 PMТоше
08/24/2021, 2:58 PMТоше
08/24/2021, 3:00 PMRyan
08/24/2021, 3:12 PMFROM node:14.9.0-alpine3.12 as dev
WORKDIR /app
RUN apk add --no-cache --virtual .build-deps alpine-sdk python3
COPY package.json yarn.lock ./
COPY prisma ./prisma
RUN yarn install --frozen-lockfile
FROM node:14.9.0-alpine3.12
WORKDIR /app
COPY --from=dev /app/package.json /app/yarn.lock /app/prisma ./
RUN yarn install --frozen-lockfile --production && \
rm -rf node_modules/@prisma/engines
COPY . .
EXPOSE 3001
CMD [ "yarn", "start" ]