mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
add Dockerfile 14.04
This commit is contained in:
parent
5d48db4bd0
commit
5663d6fac1
20
test/Dockerfile-ubuntu-14-04
Normal file
20
test/Dockerfile-ubuntu-14-04
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# This file describes how to build node-opencv into a runnable linux container with all dependencies installed
|
||||||
|
# To build:
|
||||||
|
# 1) Install docker (http://docker.io)
|
||||||
|
# 2) Build: wget https://raw.github.com/dotcloud/docker/v0.1.6/contrib/docker-build/docker-build && python docker-build $USER/node-opencv < Dockerfile
|
||||||
|
# 3) Test: docker run $USER/node-opencv node -e "console.log(require('opencv').version)"
|
||||||
|
#
|
||||||
|
# VERSION 0.2
|
||||||
|
# DOCKER-VERSION 8.1.2
|
||||||
|
|
||||||
|
# update to 14.04
|
||||||
|
from ubuntu:14.04
|
||||||
|
run apt-get update -qq
|
||||||
|
run apt-get install -y software-properties-common python-software-properties
|
||||||
|
run add-apt-repository -y ppa:kubuntu-ppa/backports
|
||||||
|
run apt-get update
|
||||||
|
run apt-get install -y libcv-dev libcvaux-dev libhighgui-dev libopencv-dev
|
||||||
|
run curl -sL https://deb.nodesource.com/setup | bash -
|
||||||
|
run apt-get install -y nodejs
|
||||||
|
# ensure npm installs at v3.2.0 vice tip
|
||||||
|
run npm install opencv || cat npm-debug.log
|
||||||
Loading…
x
Reference in New Issue
Block a user