| 1 |
# This is a dockerfile to test the build on ubuntu 14.04 |
| 2 |
from ubuntu:14.04 |
| 3 |
run apt-get update -qq |
| 4 |
run apt-get install -y software-properties-common python-software-properties |
| 5 |
run add-apt-repository -y ppa:kubuntu-ppa/backports |
| 6 |
run apt-get update |
| 7 |
run apt-get install -y libcv-dev libcvaux-dev libhighgui-dev libopencv-dev |
| 8 |
run curl -sL https://deb.nodesource.com/setup_12.x | bash - |
| 9 |
run apt-get install -y nodejs |
| 10 |
WORKDIR /root/node-opencv |
| 11 |
add . /root/node-opencv |
| 12 |
run npm install --unsafe-perm --build-from-source || cat npm-debug.log |
| 13 |
run make test |