fix: restore wheels/ COPY without invalid shell operators

COPY does not support shell operators (||, 2>/dev/null).
Keep wheels/ for paddlepaddle whl installation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
liuyuanchuang
2026-03-10 11:36:28 +08:00
parent ef98f37525
commit 7c7d4bf36a

View File

@@ -24,7 +24,7 @@ WORKDIR /build
# Copy dependencies # Copy dependencies
COPY pyproject.toml ./ COPY pyproject.toml ./
COPY wheels/ ./wheels/ 2>/dev/null || true COPY wheels/ ./wheels/
# Build venv # Build venv
RUN uv venv /build/venv --python python3.10 && \ RUN uv venv /build/venv --python python3.10 && \