Skip to content

Commit 4a4a7d7

Browse files
Update dockerfile.
1 parent d03db94 commit 4a4a7d7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Dockerfile.incode_build

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,13 @@ RUN python${PYTHON_VERSION} -m venv ${VENV_ROOT_PREFIX}
2020

2121
WORKDIR /opt/
2222
RUN 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

3631
FROM scratch AS export-stage
3732
COPY --from=build-stage /opt/opencv-python/wheelhouse /

0 commit comments

Comments
 (0)