Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit 480c536

Browse files
committed
update
1 parent e1f5f06 commit 480c536

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22
FROM 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
76
WORKDIR /tmp/opencv
87
RUN git clone https://github.com/jayrambhia/Install-OpenCV
98
WORKDIR Install-OpenCV/Ubuntu
109
# Modify install scripts...
1110
RUN sed -i 's/sudo //g' *.sh
1211
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
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
1514
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' >> /etc/apt/sources.list
1615
RUN apt-get update
1716
RUN ./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

0 commit comments

Comments
 (0)