copy more files
Some checks failed
Main / build-and-push-docker-image (20.x) (push) Failing after 2m50s
Some checks failed
Main / build-and-push-docker-image (20.x) (push) Failing after 2m50s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -47,7 +47,7 @@ const config: runtime.GetPrismaClientConfig = {
|
||||
"db"
|
||||
],
|
||||
"activeProvider": "mongodb",
|
||||
"postinstall": false,
|
||||
"postinstall": true,
|
||||
"inlineDatasources": {
|
||||
"db": {
|
||||
"url": {
|
||||
|
||||
Reference in New Issue
Block a user