copy more files
Some checks failed
Main / build-and-push-docker-image (20.x) (push) Failing after 2m50s

This commit is contained in:
2025-12-05 23:50:49 -05:00
parent 9b20909a1f
commit cd3fcd1a80
2 changed files with 7 additions and 4 deletions

View File

@@ -2,7 +2,9 @@
FROM node:20-alpine AS dependencies FROM node:20-alpine AS dependencies
RUN corepack enable RUN corepack enable
RUN corepack prepare yarn@stable --activate 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 WORKDIR /app
RUN yarn install RUN yarn install
RUN ls -lR /app RUN ls -lR /app
@@ -12,7 +14,8 @@ FROM node:20-alpine AS builder
RUN corepack enable RUN corepack enable
RUN corepack prepare yarn@stable --activate RUN corepack prepare yarn@stable --activate
WORKDIR /app WORKDIR /app
COPY --from=dependencies /app/node_modules /app/ COPY .yarn ./.yarn
COPY --from=dependencies /app/node_modules ./
COPY . /app/ COPY . /app/
RUN yarn build RUN yarn build
@@ -22,6 +25,6 @@ RUN corepack enable
RUN corepack prepare yarn@stable --activate RUN corepack prepare yarn@stable --activate
WORKDIR /app WORKDIR /app
COPY --from=builder /app/build /app/build 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 CMD ["yarn", "start"] # Replace with your start command

View File

@@ -47,7 +47,7 @@ const config: runtime.GetPrismaClientConfig = {
"db" "db"
], ],
"activeProvider": "mongodb", "activeProvider": "mongodb",
"postinstall": false, "postinstall": true,
"inlineDatasources": { "inlineDatasources": {
"db": { "db": {
"url": { "url": {