diff --git a/Dockerfile b/Dockerfile index 913e685..2ebcb91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,9 @@ FROM node:20-alpine AS dependencies RUN corepack enable RUN corepack prepare yarn@stable --activate -COPY package.json yarn.lock /app/ +COPY .yarnrc.yml ./ +COPY .yarn ./.yarn +COPY package.json yarn.lock ./ WORKDIR /app RUN yarn install RUN ls -lR /app @@ -12,7 +14,8 @@ FROM node:20-alpine AS builder RUN corepack enable RUN corepack prepare yarn@stable --activate WORKDIR /app -COPY --from=dependencies /app/node_modules /app/ +COPY .yarn ./.yarn +COPY --from=dependencies /app/node_modules ./ COPY . /app/ RUN yarn build @@ -22,6 +25,6 @@ RUN corepack enable RUN corepack prepare yarn@stable --activate WORKDIR /app COPY --from=builder /app/build /app/build -COPY --from=dependencies /app/.yarn /app/.yarn +COPY --from=dependencies /app/.yarn ./.yarn CMD ["yarn", "start"] # Replace with your start command diff --git a/src/prisma/generated/internal/class.ts b/src/prisma/generated/internal/class.ts index c1ebff0..021f14e 100644 --- a/src/prisma/generated/internal/class.ts +++ b/src/prisma/generated/internal/class.ts @@ -47,7 +47,7 @@ const config: runtime.GetPrismaClientConfig = { "db" ], "activeProvider": "mongodb", - "postinstall": false, + "postinstall": true, "inlineDatasources": { "db": { "url": {