This repository was archived by the owner on Jan 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 22FROM heroku/python
33
44# Install OpenCV by https://github.com/jayrambhia/Install-OpenCV
5- ENV DESTDIR /app/.heroku/opencv
6- RUN mkdir -p $DESTDIR /tmp/opencv
5+ RUN mkdir -p /app/.heroku/opencv /tmp/opencv
76WORKDIR /tmp/opencv
87RUN git clone https://github.com/jayrambhia/Install-OpenCV
98WORKDIR Install-OpenCV/Ubuntu
109# Modify install scripts...
1110RUN sed -i 's/sudo //g' *.sh
1211RUN 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
13- RUN sed -i 's/make install/make DESTDIR=$DESTDIR install/' opencv_install.sh
12+ RUN sed -i 's/make install/make DESTDIR=\/ app \/ .heroku \/ opencv install/' opencv_install.sh
1413# Install
1514RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' >> /etc/apt/sources.list
1615RUN apt-get update
1716RUN ./opencv_latest.sh
17+ RUN echo "/app/.heroku/opencv/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf
18+ RUN ldconfig
19+ RUN ln /dev/null /dev/raw1394
You can’t perform that action at this time.
0 commit comments