Refactor PaddleOCR service installation commands in docker-compose.yml

- Updated installation commands to use pip for better package management.
- Changed the command to serve PaddleOCR, ensuring compatibility with the latest paddlex package.
This commit is contained in:
Yury Kossakovsky
2025-08-27 14:38:23 -06:00
parent a3132c564b
commit 52e33ba8f5

View File

@@ -705,8 +705,10 @@ services:
profiles: ["paddleocr"]
restart: unless-stopped
command: /bin/sh -c "set -e; \
paddlex --install serving; \
exec paddlex --serve --pipeline OCR --device cpu --port 8080"
python -m pip install --upgrade pip; \
python -m pip install --no-cache-dir paddlex; \
python -m paddlex.command --install serving; \
exec python -m paddlex.command --serve --pipeline OCR --device cpu --port 8080"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8080 > /dev/null || exit 1"]
interval: 30s