From 47db31088ce0dec5a96883e98f282a1218374d96 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Thu, 22 Aug 2024 13:05:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=96=87=E6=A1=A3=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=E7=9A=84=E9=83=A8=E5=88=86=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index d429fbf..09f879d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,12 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone && pip install packages/torchvision-0.19.0+cu118-cp310-cp310-linux_x86_64.whl \ && pip install packages/torchaudio-2.4.0+cu118-cp310-cp310-linux_x86_64.whl +# 编译文档检测的部分内容 +COPY object_detection /app/object_detection +RUN python object_detection/core/models/py_utils/_cpools/setup.py install --user \ + && cd object_detection/core/external \ + && make + # 将当前目录内容复制到容器的/app内 COPY . /app