diff --git a/Dockerfile b/Dockerfile index 09f879d..c84dcf0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,9 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone # 编译文档检测的部分内容 COPY object_detection /app/object_detection -RUN python object_detection/core/models/py_utils/_cpools/setup.py install --user \ - && cd object_detection/core/external \ +RUN cd /app/object_detection/core/models/py_utils/_cpools \ + && python setup.py install --user \ + && cd /app/object_detection/core/external \ && make # 将当前目录内容复制到容器的/app内