Make builds reproducible and redeploys graceful
All checks were successful
Build and Deploy / build-and-push (push) Successful in 43s
All checks were successful
Build and Deploy / build-and-push (push) Successful in 43s
- Install with npm ci from package-lock.json so a rebuild can't pull different dependency versions than were tested. - Run node directly (not via npm) so it receives SIGTERM and can drain queued webhooks; give the stack a 60s stop_grace_period and start the new task before stopping the old one. - Add .dockerignore and stop tracking dist/ (already gitignored and rebuilt by the Dockerfile). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -48,6 +48,12 @@ services:
|
||||
# - nginx-proxy-manager-network
|
||||
volumes:
|
||||
- middleware_data:/app/data-runtime
|
||||
# Give the app time to finish queued webhooks on redeploy (SHUTDOWN_GRACE_MS is 50s).
|
||||
stop_grace_period: 60s
|
||||
deploy:
|
||||
update_config:
|
||||
# Start the new task before stopping the old one so webhooks keep landing during a redeploy.
|
||||
order: start-first
|
||||
|
||||
# networks:
|
||||
# nginx-proxy-manager-network:
|
||||
|
||||
Reference in New Issue
Block a user