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