fix prisma openssl mismatch in builder stage

This commit is contained in:
2026-06-11 23:38:13 +03:30
parent 1171b7f1e3
commit 3b5f8240be
2 changed files with 2 additions and 4 deletions
+1 -4
View File
@@ -1,9 +1,9 @@
# پایه تصویر Node.js (استفاده از نسخه ۲۰ به دلیل نیازمندی‌های Tailwind v4 و WebAuthn)
FROM node:20-slim AS base
RUN apt-get update && apt-get install -y openssl libc6 && rm -rf /var/lib/apt/lists/*
# مرحله ۱: نصب نیازمندی‌ها
FROM base AS deps
RUN apt-get update && apt-get install -y openssl libc6
WORKDIR /app
# کپی فایل‌های نصب پکیج
@@ -31,9 +31,6 @@ RUN npm run build
FROM base AS runner
WORKDIR /app
# نصب openssl برای اجرای Prisma در محیط داکر
RUN apt-get update && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1