File tree 3 files changed +40
-0
lines changed
3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Dockerfile for python-opencv
2
+
3
+ # Pull base image.
4
+ FROM debian:sid
5
+
6
+ MAINTAINER ibotdotout <ibot.out@gmail.com>
7
+
8
+ # Install packages.
9
+ RUN apt-get update
10
+ RUN apt-get install -y python python-dev python-pip python-virtualenv
11
+ RUN apt-get install -y python-opencv
12
+ RUN apt-get install -y python-matplotlib
13
+
14
+ # Define working directory.
15
+ WORKDIR /app
16
+
17
+ # Define default command.
18
+ CMD ["bash" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # enable rednose color
4
+ export NOSE_REDNOSE=1
5
+
6
+ # set virutalenv path
7
+ VENVPATH=/tmp/env
8
+
9
+ # create virtualenv with system packages
10
+ virtualenv --system-site-packages $VENVPATH
11
+
12
+ # activate virtualenv
13
+ . $VENVPATH /bin/activate
14
+
15
+ # install python packages from requirements.txt
16
+ pip install -r requirements.txt
17
+
18
+ # execute arguments
19
+ exec " $@ "
20
+
21
+ # deactivate virtualenv
22
+ deactivate
You can’t perform that action at this time.
0 commit comments