change docker file and add install page

This commit is contained in:
2026-06-11 19:54:04 +03:30
parent 3ce26d4d1a
commit 6a8d214762
2 changed files with 100 additions and 7 deletions
+3 -3
View File
@@ -7,11 +7,11 @@ RUN apt-get update && apt-get install -y openssl libc6
WORKDIR /app
# کپی فایل‌های نصب پکیج
COPY package.json package-lock.json* ./
COPY package.json ./
COPY prisma ./prisma/
# نصب پکیج‌ها و جنریت کردن کلاینت Prisma
RUN npm install
# نصب پکیج‌ها و دریافت باینری‌های مناسب لینوکس
RUN rm -rf package-lock.json && npm install
RUN npx prisma generate
# مرحله ۲: بیلد پروژه