chore: move docker entrypoint to seperate script

This commit is contained in:
Elias Schneider
2024-08-11 15:53:56 +02:00
parent 94e2a6110d
commit f1f514dff7
2 changed files with 14 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/sh
# Start Caddy
caddy start --config /etc/caddy/Caddyfile &
# Run the frontend server
PORT=3333 HOSTNAME=0.0.0.0 node frontend/server.js &
# Run the backend server
cd backend && npm run prod
# Wait for all processes to finish
wait -n