From 6dcf7976137e283ff8faf7d1054591d6a36235d0 Mon Sep 17 00:00:00 2001 From: Trey t Date: Mon, 2 Mar 2026 20:02:42 -0600 Subject: [PATCH] Fix worker healthcheck: use pgrep -f for Alpine busybox compatibility Alpine's busybox pgrep -x doesn't match process names correctly. Use pgrep -f /app/worker to match the full command path instead. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0f4e88e..f51c912 100644 --- a/Dockerfile +++ b/Dockerfile @@ -145,6 +145,6 @@ RUN mkdir -p /app/uploads EXPOSE 5000 HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ - CMD pgrep -x worker > /dev/null && exit 0 || curl -f http://localhost:${PORT:-5000}/api/health/ || exit 1 + CMD pgrep -f /app/worker > /dev/null && exit 0 || curl -f http://localhost:${PORT:-5000}/api/health/ || exit 1 CMD ["/app/start.sh"]