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