Skip to content

Commit bf0db44

Browse files
committed
korededou?
1 parent 1f5e1a4 commit bf0db44

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ ENV NODE_ENGINE 4.1.1
88
# Locate our binaries
99
ENV PATH /app/heroku/node/bin/:/app/user/node_modules/.bin:$PATH
1010

11+
# Install OpenCV
12+
RUN mkdir -p /app/.heroku/opencv /tmp/opencv
13+
ADD Install-OpenCV /tmp/opencv
14+
WORKDIR /tmp/opencv/Ubuntu
15+
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' >> /etc/apt/sources.list && apt-get update
16+
RUN ./opencv_latest.sh
17+
1118
# Create some needed directories
1219
RUN mkdir -p /app/heroku/node /app/.profile.d
1320
WORKDIR /app/user
@@ -18,12 +25,6 @@ RUN curl -s https://s3pository.heroku.com/node/v$NODE_ENGINE/node-v$NODE_ENGINE-
1825
# Export the node path in .profile.d
1926
RUN echo "export PATH=\"/app/heroku/node/bin:/app/user/node_modules/.bin:\$PATH\"" > /app/.profile.d/nodejs.sh
2027

21-
# Install OpenCV
22-
RUN mkdir -p /app/.heroku/opencv /tmp/opencv
23-
ADD Install-OpenCV /tmp/opencv
24-
WORKDIR /tmp/opencv/Ubuntu
25-
RUN echo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' >> /etc/apt/sources.list && apt-get update
26-
RUN ./opencv_latest.sh
2728

2829
ONBUILD ADD package.json /app/user/
2930
ONBUILD RUN /app/heroku/node/bin/npm install

0 commit comments

Comments
 (0)