mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 22:33:11 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user