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 <noreply@anthropic.com>
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user