Allow prebuilt Docker context files through .dockerignore.

Dockerfile.prebuilt needs package.json, prisma, and node_modules in the build context; the previous ignore whitelist blocked them.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-08 15:12:41 +03:30
co-authored by Cursor
parent 345a4a4708
commit 86b3146836
+18
View File
@@ -1,8 +1,26 @@
# پیش‌فرض همه چیز ignore؛ فقط آنچه برای Docker لازم است را باز کن
*
!deploy-bundle.tar.gz
!Dockerfile
!Dockerfile.prebuilt
!Dockerfile.bundle
!Dockerfile.dist
!docker-compose.yml
!docker-compose.prebuilt.yml
!docker-compose.bundle.yml
!docker-compose.dist.yml
!docker-entrypoint.sh
!dist
!dist/**
# برای Dockerfile.prebuilt (بیلد لوکال + اجرا روی سرور)
!package.json
!package-lock.json
!prisma
!prisma/**
!prisma.config.ts
!node_modules
!node_modules/**
!.env.example