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

Commit b85d535

Browse files
committed
add DESTDIR
1 parent b9c77c0 commit b85d535

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
FROM heroku/python
33

44
# Install OpenCV by https://github.com/jayrambhia/Install-OpenCV
5-
RUN mkdir -p /tmp/opencv
5+
ENV DESTDIR /app/.heroku/opencv
6+
RUN mkdir -p $DESTDIR /tmp/opencv
67
WORKDIR /tmp/opencv
78
RUN git clone https://github.com/jayrambhia/Install-OpenCV
89
WORKDIR Install-OpenCV/Ubuntu
910
RUN sed -i 's/sudo //g' *.sh
11+
RUN sed -i 's/make install/make DESTDIR=$DESTDIR install/' opencv_install.sh
1012
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' >> /etc/apt/sources.list
1113
RUN apt-get update
1214
RUN ./opencv_latest.sh

0 commit comments

Comments
 (0)