Skip to content

Commit e1f5f06

Browse files
committed
update cmake cache variable
1 parent fbf0b41 commit e1f5f06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ RUN git clone https://github.com/jayrambhia/Install-OpenCV
99
WORKDIR Install-OpenCV/Ubuntu
1010
# Modify install scripts...
1111
RUN sed -i 's/sudo //g' *.sh
12-
RUN sed -i 's/BUILD_NEW_PYTHON_SUPPORT/BUILD_opencv_python2/' opencv_install.sh
12+
RUN sed -i 's/BUILD_NEW_PYTHON_SUPPORT=ON/BUILD_opencv_python2=ON -D PYTHON_INCLUDE_DIR=\/app\/.heroku\/python\/include\/python2.7/' opencv_install.sh
1313
RUN sed -i 's/make install/make DESTDIR=$DESTDIR install/' opencv_install.sh
1414
# Install
1515
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' >> /etc/apt/sources.list
1616
RUN apt-get update
17-
RUN CMAKE_PREFIX_PATH=/app/.heroku/python ./opencv_latest.sh
17+
RUN ./opencv_latest.sh

0 commit comments

Comments
 (0)