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:
+2
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user