This repository was archived by the owner on Jan 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,8 @@ RUN ./opencv_latest.sh
1111
1212# Python environment
1313RUN echo 'export PYTHONPATH=${PYTHONPATH:-/app/.heroku/opencv/lib/python2.7/site-packages}' > /app/.profile.d/opencv.sh
14+
15+ ONBUILD WORKDIR /app/user
16+ ONBUILD ADD requirements.txt /app/user/
17+ ONBUILD RUN /app/.heroku/python/bin/pip install -r requirements.txt
18+ ONBUILD ADD . /app/user/
Original file line number Diff line number Diff line change 3838cd opencv-$version
3939mkdir build
4040cd build
41- cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/app/.heroku/opencv -D WITH_TBB=ON -D BUILD_opencv_python2=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_OPENGL=ON -D PYTHON_INCLUDE_DIR=/app/.heroku/python/include/python2.7 -D WITH_1394=OFF ..
41+ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/app/.heroku/opencv -D BUILD_opencv_python2=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_OPENGL=ON -D PYTHON_INCLUDE_DIR=/app/.heroku/python/include/python2.7 -D WITH_1394=OFF ..
4242make -j 4
4343make install
4444sh -c ' echo "/app/.heroku/opencv/lib" > /etc/ld.so.conf.d/opencv.conf'
You can’t perform that action at this time.
0 commit comments