chore(docker): .dockerignore angepasst; lokale Build-Schritte in Rebuild-Skripten; Doku/README zu production vs production-prebuilt aktualisiert

This commit is contained in:
2025-10-06 18:59:17 +02:00
parent 7a84130aec
commit 1124b1f40b
24 changed files with 1149 additions and 270 deletions

View File

@@ -1,5 +1,17 @@
#! /bin/bash
set -e
# Exit on error to catch build failures early
docker compose -f docker-compose.yml down
echo "Building application locally..."
pnpm install --frozen-lockfile || exit 1
pnpm run build || exit 1
docker compose -f docker-compose.yml build --no-cache
docker compose -f docker-compose.yml up -d
# docker compose -f docker-compose.yml logs -f stargirlnails
echo "Waiting for container to start..."
sleep 5
echo "Verifying bcrypt installation in container..."
docker compose -f docker-compose.yml exec stargirlnails node -e "require('bcrypt')" && echo "✓ bcrypt OK" || echo "✗ bcrypt FAILED"