Fix prisma deploy issue
This commit is contained in:
+4
-4
@@ -43,10 +43,10 @@ COPY --from=builder --chown=node:node /app/.next/standalone ./
|
||||
COPY --from=builder --chown=node:node /app/.next/static ./.next/static
|
||||
COPY --from=builder --chown=node:node /app/prisma ./prisma
|
||||
|
||||
# Prisma CLI is in devDependencies and is not included in the Next.js
|
||||
# standalone output. Copy it explicitly so start.sh can run migrations.
|
||||
COPY --from=builder --chown=node:node /app/node_modules/prisma ./node_modules/prisma
|
||||
COPY --from=builder --chown=node:node /app/node_modules/.bin/prisma ./node_modules/.bin/prisma
|
||||
# Prisma CLI (devDependency) is not in the Next.js standalone trace. Install
|
||||
# globally in the runner so start.sh can run `prisma migrate deploy` with all
|
||||
# transitive deps (@prisma/engines, effect, etc.).
|
||||
RUN npm install -g prisma@6.19.3
|
||||
|
||||
# Cloudron's runtime rootfs is read-only except /tmp, /run, /app/data.
|
||||
# Three marketing routes use ISR (`revalidate`) and write to .next/cache;
|
||||
|
||||
Reference in New Issue
Block a user