Add local Docker image build and export for server deploy

Build and gzip the API image on a machine with good network, then docker load on the server without remote npm builds.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-05 21:28:35 +03:30
co-authored by Cursor
parent 81d0571d72
commit 1fdbae1791
4 changed files with 84 additions and 1 deletions
+2 -1
View File
@@ -27,7 +27,8 @@
"db:reset": "prisma migrate reset --force",
"docker:up": "docker compose up -d --build",
"docker:down": "docker compose down",
"docker:logs": "docker compose logs -f api"
"docker:logs": "docker compose logs -f api",
"docker:export": "bash scripts/build-and-export-image.sh"
},
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"