-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (42 loc) · 1.78 KB
/
Dockerfile
File metadata and controls
54 lines (42 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# ------- Build Command docker build -t img-starter -f d-starter .
# Simply, because you cannot have multiple base images in a Dockerfile
# https://runnable.com/blog/9-common-dockerfile-mistakes
#-------- Starter developing image
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
ENV PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
ENV LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
# ------- Installation Web Server dependendencies
RUN apt-get update && apt-get install -y \
git \
cmake \
vim \
net-tools \
wget \
htop \
unzip \
libsm6 \
libxext6 \
libxrender-dev \
libgtk2.0-dev
ENV HOME=/root
# ------- Installation Python dependendencies
RUN apt-get update && apt-get install -y python3-pip python3-dev libmysqlclient-dev
RUN /bin/bash -c "pip3 install numpy \
scipy \
tornado \
imutils \
pyinotify \
mysqlclient \
pandas \
matplotlib \
scikit-learn \
Pillow cython \
opencv-python \
opencv-contrib-python"
#------------------ TEXT RECOGNITION REQUIREMENTS
RUN /bin/bash -c "pip3 install torchvision torch scikit-image lmdb natsort"
# docker build -t deep-learning:text_recognition .
#xhost +local:docker && docker run --runtime=nvidia --rm -it --name deep_learning_face_recognition \
#--env="DISPLAY=$DISPLAY" --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" --device=/dev/video0 \
#-v $HOME/visiont3lab-github/face_recognition:/root/home/ws bajibajang/deep-learning:text_recognition \
# /bin/bash -c "cd /root/home/ws/algorithm/ && python3 custom_face_recognition.py"