fix some for api container

This commit is contained in:
mahmood
2026-09-11 00:00:36 +03:30
parent 18415d50c6
commit 13c8eda4b2
7 changed files with 65 additions and 10 deletions
+2 -3
View File
@@ -2,15 +2,14 @@ FROM docker.arvancloud.ir/node:20-bookworm
# فقط کپی — هیچ install/build داخل ایمیج نیست.
# لوکال: pnpm run build:api:release
# مهم: apps/api/release/node_modules باید داخل گیت باشد.
WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
COPY apps/api/release/ ./
EXPOSE 3000
# به‌جای .bin (روی ویندوز shim می‌سازد) مستقیم entry لینوکسی Prisma
CMD ["sh", "-c", "node node_modules/prisma/build/index.js migrate deploy && node app.js"]
CMD ["sh", "/app/docker-entrypoint.sh"]