From aa9560569f666e87dbee9b1d5f4d88a909d471ab Mon Sep 17 00:00:00 2001 From: poprhythm Date: Sat, 21 Feb 2026 19:53:32 +0000 Subject: [PATCH] Fix leafweb-vision: use YAML list form for command to avoid parse errors --- leafweb-vision/docker-compose.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/leafweb-vision/docker-compose.yml b/leafweb-vision/docker-compose.yml index de204fc..237272d 100644 --- a/leafweb-vision/docker-compose.yml +++ b/leafweb-vision/docker-compose.yml @@ -3,7 +3,13 @@ services: image: ultralytics/ultralytics:latest container_name: leafweb-vision restart: unless-stopped - command: bash -c "pip install 'streamlit>=1.29.0' -q --root-user-action=ignore && sed -i 's/cv2.destroyAllWindows().*$/pass # cv2.destroyAllWindows() disabled in headless/' /ultralytics/ultralytics/solutions/streamlit_inference.py && yolo solutions inference" + command: + - /bin/bash + - -c + - >- + pip install 'streamlit>=1.29.0' -q --root-user-action=ignore && + sed -i 's/cv2.destroyAllWindows()/pass/' /ultralytics/ultralytics/solutions/streamlit_inference.py && + yolo solutions inference ports: - "8501:8501" volumes: