File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,13 @@ RUN python${PYTHON_VERSION} -m venv ${VENV_ROOT_PREFIX}
2020
2121WORKDIR /opt/
2222RUN apt update && apt install -y git build-essential cmake libopenblas-dev liblapacke-dev libjpeg-dev \
23- # trick to opencv find openblas and numpy headers
24- && cp /usr/include/x86_64-linux-gnu/cblas.h /usr/include/ \
2523 && ln -s /usr/local/lib/python${PYTHON_VERSION}/dist-packages/numpy/core/include/numpy /usr/include/numpy \
2624 && git clone https://github.com/opencv/opencv-python.git \
2725 && cd opencv-python \
2826 && git checkout ${OPENCV_TAG} \
29- && git submodule update --init --recursive \
27+ && git submodule update --init --recursive --depth 1 \
3028 && export ENABLE_HEADLESS=1 \
31- && MAKEFLAGS='-j3' pip wheel . --verbose \
32- # trick to pack openblas lib to wheel
33- && pip install auditwheel patchelf \
34- && auditwheel repair *.whl --plat manylinux_2_31_x86_64
29+ && MAKEFLAGS='-j3' pip wheel . --verbose
3530
3631FROM scratch AS export-stage
3732COPY --from=build-stage /opt/opencv-python/wheelhouse /
You can’t perform that action at this time.
0 commit comments