Update PaddleOCR service configuration in docker-compose.yml

- Added python3 and python3-pip to the installation commands.
- Updated pip commands to use python3 and pip3 for compatibility.
- Ensured pip installs paddlex without cache to optimize image size.
This commit is contained in:
Yury Kossakovsky
2025-08-27 14:09:54 -06:00
parent 8f6b5e8e6d
commit 487ef1d161

View File

@@ -705,9 +705,9 @@ services:
profiles: ["paddleocr"]
restart: unless-stopped
command: /bin/sh -c "set -e; \
apt-get update && apt-get install -y --no-install-recommends git wget && rm -rf /var/lib/apt/lists/*; \
python -m pip install --upgrade pip; \
pip install paddlex; \
apt-get update && apt-get install -y --no-install-recommends git wget python3 python3-pip && rm -rf /var/lib/apt/lists/*; \
python3 -m pip install --upgrade pip; \
pip3 install --no-cache-dir paddlex; \
paddlex --install serving; \
exec paddlex --serve --pipeline OCR --device cpu --port 8080"
healthcheck: