优化opencv的java镜像

This commit is contained in:
KennyLee 2019-07-02 19:19:58 +08:00
parent f136e22f35
commit 7a7513f273

View File

@ -60,6 +60,7 @@ RUN mkdir -p /opencv/build && \
-D BUILD_NEW_PYTHON_SUPPORT=ON \
# Building java
-D BUILD_SHARED_LIBS=OFF \
-D BUILD_DOCS=OFF \
-D BUILD_TESTS=OFF \
@ -74,7 +75,11 @@ RUN mkdir -p /opencv/build && \
.. &&\
make -j$NUM_CORES && \
make install && \
ldconfig
ldconfig && \
# Clean the install from sources
cd / && \
rm -r /opencv && \
rm -r /opencv_contrib
# Define default command.
CMD ["bash"]