You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packaging/Dockerfile
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -66,23 +66,25 @@ COPY . /app/
66
66
ARG BUILD_TYPE=cpu
67
67
RUN if [ "$BUILD_TYPE" = "gpu" ]; then \
68
68
# GPU 版本:尝试下载预编译的 pydensecrf,如果失败则从源码编译
69
-
if wget -q https://github.com/hgmzhn/manga-translator-ui/releases/download/v1.9.2/pydensecrf-1.0-cp312-cp312-linux_x86_64.whl -O /tmp/pydensecrf.whl 2>/dev/null && [ -f /tmp/pydensecrf.whl ]; then \
70
-
echo "Using precompiled pydensecrf wheel" && \
71
-
pip install --no-cache-dir /tmp/pydensecrf.whl; \
69
+
if wget --spider -q https://github.com/hgmzhn/manga-translator-ui/releases/download/v1.9.2/pydensecrf-1.0-cp312-cp312-linux_x86_64.whl 2>/dev/null; then \
if wget -q https://github.com/hgmzhn/manga-translator-ui/releases/download/v1.9.2/pydensecrf-1.0-cp312-cp312-linux_x86_64.whl -O /tmp/pydensecrf.whl 2>/dev/null && [ -f /tmp/pydensecrf.whl ]; then \
82
-
echo "Using precompiled pydensecrf wheel" && \
83
-
pip install --no-cache-dir /tmp/pydensecrf.whl; \
82
+
if wget --spider -q https://github.com/hgmzhn/manga-translator-ui/releases/download/v1.9.2/pydensecrf-1.0-cp312-cp312-linux_x86_64.whl 2>/dev/null; then \
0 commit comments