docker/opencv/python-dlib/Dockerfile

18 lines
796 B
Docker
Raw Normal View History

2019-07-11 11:34:01 +08:00
FROM registry.cn-hangzhou.aliyuncs.com/kennylee/opencv
MAINTAINER kennylee26 <kennylee26@gmail.com>
RUN apt-get update && \
apt-get install -yq --no-install-recommends bzip2 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
2019-07-11 13:23:55 +08:00
RUN pip3 install --no-cache-dir numpy opencv_python opencv-contrib-python dlib imutils && \
2019-07-11 11:34:01 +08:00
mkdir -p /var/dlib-data/ && cd /var/dlib-data/ && \
2019-07-11 12:22:20 +08:00
wget -q http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 \
2019-07-11 11:34:01 +08:00
-O shape_predictor_68_face_landmarks.dat.bz2 && \
2019-07-11 12:22:20 +08:00
wget -q http://dlib.net/files/shape_predictor_5_face_landmarks.dat.bz2 \
2019-07-11 11:34:01 +08:00
-O shape_predictor_5_face_landmarks.dat.bz2 && \
bzip2 -d shape_predictor_68_face_landmarks.dat.bz2 shape_predictor_5_face_landmarks.dat.bz2 && \
2019-07-11 12:22:20 +08:00
rm -f *.bz2