prisma fix
This commit is contained in:
parent
85669b8395
commit
9e0093bf7f
@ -27,9 +27,7 @@ COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/.next/standalone ./
|
||||
COPY --from=builder /app/.next/static ./.next/static
|
||||
COPY --from=builder /app/prisma ./prisma
|
||||
COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
|
||||
COPY --from=builder /app/node_modules/prisma ./node_modules/prisma
|
||||
COPY --from=builder /app/node_modules/@prisma ./node_modules/@prisma
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
|
||||
COPY scripts/start.sh /app/start.sh
|
||||
RUN chmod +x /app/start.sh
|
||||
|
||||
@ -8,5 +8,10 @@ echo "DATABASE_URL: ${DATABASE_URL:+set}"
|
||||
echo "CLERK_SECRET_KEY: ${CLERK_SECRET_KEY:+set}"
|
||||
echo "S3_ENDPOINT: ${S3_ENDPOINT:+set}"
|
||||
|
||||
echo "Running Prisma migrations..."
|
||||
npx prisma migrate deploy || {
|
||||
echo "WARNING: Prisma migrations failed, continuing anyway..."
|
||||
}
|
||||
|
||||
echo "Starting Next.js server on 0.0.0.0:3000..."
|
||||
exec node server.js
|
||||
Loading…
Reference in New Issue
Block a user