Skip to content

Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.

fix(backend): Fix docker CTRL+C

Amaury3a7245f9a47e
diff --git a/backend/docker.sh b/backend/docker.sh
index aabd3558..bd220baf 100755
--- a/backend/docker.sh
+++ b/backend/docker.sh
@@ -1,7 +1,26 @@
#!/bin/ash
# This is the Dockerfile's entrypoint script.
-
# https://docs.docker.com/config/containers/multi-service_container/
+
+# Function to terminate processes
+cleanup() {
+ echo "Shutting down..."
+ kill $(jobs -p)
+ exit 0
+}
+
+# Set up signal handling
+trap cleanup SIGTERM SIGINT
+
+# Start chromedriver in background
chromedriver &
-./reacher_backend
+
+# Start reacher backend in background
+./reacher_backend &
+
+# Wait for any process to exit
+wait -n
+
+# Exit with status of process that exited first
+exit $?