gpu fix
Some checks failed
build_docker / essential (pull_request) Successful in 1s
build_docker / build_gpu (pull_request) Failing after 10m28s
build_docker / build_cpu (pull_request) Has been cancelled

This commit is contained in:
2026-01-17 11:22:38 +01:00
parent e8e7a61a60
commit 693d64e5e3

View File

@@ -51,12 +51,18 @@ RUN if ls /tmp/wheels/paddlepaddle*.whl 1>/dev/null 2>&1; then \
else \
echo "=== Installing PaddlePaddle from CUDA index (x86_64) ===" && \
pip install --no-cache-dir paddlepaddle-gpu==3.2.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/; \
fi
fi && \
rm -rf /tmp/wheels
# Install remaining dependencies (skip paddlepaddle-gpu line from requirements)
RUN grep -v "paddlepaddle-gpu" requirements-gpu.txt > /tmp/requirements-no-paddle.txt && \
pip install --no-cache-dir -r /tmp/requirements-no-paddle.txt && \
rm -rf /tmp/wheels /tmp/requirements-no-paddle.txt
# Install remaining dependencies explicitly
RUN pip install --no-cache-dir \
paddleocr==3.3.2 \
jiwer \
numpy \
fastapi \
"uvicorn[standard]" \
pydantic \
Pillow
# Copy application code
COPY paddle_ocr_tuning_rest.py .