Use full node:22-bookworm image so OpenSSL is available without apt

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-05 22:11:34 +03:30
co-authored by Cursor
parent fd98ffb7a3
commit 85900f649c
2 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
# باندل روی glibc ساخته شده؛ bookworm-slim بدون apt (سرور به deb.debian.org دسترسی ندارد)
FROM node:22-bookworm-slim
# bookworm کامل (نه slim) تا OpenSSL از قبل داخل ایمیج باشد
# سرورهای ایران معمولاً به deb.debian.org دسترسی ندارند
FROM node:22-bookworm
WORKDIR /app
ENV NODE_ENV=production
+4 -2
View File
@@ -1,13 +1,15 @@
#!/bin/sh
set -e
echo "DATABASE_URL host check..."
echo "Node: $(node -v)"
echo "OpenSSL: $(openssl version 2>/dev/null || echo missing)"
echo "Waiting for database & applying migrations..."
i=0
until npx prisma migrate deploy; do
i=$((i + 1))
if [ "$i" -ge 30 ]; then
echo "Database not ready after 30 attempts"
echo "Database/migrate failed after 30 attempts"
exit 1
fi
echo "Retry $i..."