copy prisma generated files, fix start command
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m50s
All checks were successful
Main / build-and-push-docker-image (20.x) (push) Successful in 4m50s
This commit is contained in:
@@ -30,10 +30,11 @@ 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 ./node_modules
|
COPY --from=dependencies /app/node_modules ./node_modules
|
||||||
|
COPY --from=builder /app/src/prisma/generated ./src/prisma/generated
|
||||||
COPY --from=builder /app/.next ./.next
|
COPY --from=builder /app/.next ./.next
|
||||||
COPY --from=builder /app/.yarn ./.yarn
|
COPY --from=builder /app/.yarn ./.yarn
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["yarn", "start"]
|
CMD ["node", ".next/standalone/server.js"]
|
||||||
|
|||||||
Reference in New Issue
Block a user