Simplificar Docker a imagen única y actualizar workflow CI/CD
Some checks failed
build-and-deploy / build (push) Failing after 47s
build-and-deploy / deploy (push) Has been skipped

This commit is contained in:
2025-08-15 12:18:42 -06:00
parent 3385636129
commit 84aef0774d
4 changed files with 86 additions and 45 deletions

15
start.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
# Iniciar el servidor Colyseus en background
echo "Starting Colyseus server..."
cd /app/server && node dist/index.js &
# Esperar un momento para que el servidor inicie
sleep 2
# Servir el cliente compilado
echo "Starting client server..."
cd /app/client && serve -s dist -l 3000 &
# Mantener el contenedor corriendo
wait