Extract deploy bundle inside Dockerfile so server needs no tar command

Server workflow is only git pull and docker compose up --build; env still comes from .env.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-05 22:00:15 +03:30
co-authored by Cursor
parent 8cedf9f082
commit 6ed952cc5d
4 changed files with 19 additions and 64 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# روی سرور: یک دستور
set -euo pipefail
cd "$(dirname "$0")/.."
git pull --no-rebase
docker compose up -d --build
docker compose ps
echo "health: curl -s http://127.0.0.1:3000/api/health"