1 Star 0 Fork 0

leehow1988 / face_recognition-1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
leehow1988 提交于 2018-07-09 14:18 . github to gitee
FROM python:3.4-slim
RUN apt-get -y update && \
apt-get install -y --fix-missing \
build-essential \
cmake \
gfortran \
git \
wget \
curl \
graphicsmagick \
libgraphicsmagick1-dev \
libatlas-dev \
libavcodec-dev \
libavformat-dev \
libboost-all-dev \
libgtk2.0-dev \
libjpeg-dev \
liblapack-dev \
libswscale-dev \
pkg-config \
python3-dev \
python3-numpy \
software-properties-common \
zip \
&& apt-get clean && rm -rf /tmp/* /var/tmp/*
# Install Flask
RUN cd ~ && \
pip3 install opencv-python opencv-contrib-python matplotlib
# Install DLIB
RUN cd ~ && \
mkdir -p dlib && \
git clone -b 'v19.7' --single-branch https://gitee.com/leehow1988/dlib.git dlib/ && \
cd dlib/ && \
python3 setup.py install --yes USE_AVX_INSTRUCTIONS
# Install Flask
RUN cd ~ && \
pip3 install virtualenv flask flask-cors
# Install Face-Recognition Python Library
RUN cd ~ && \
mkdir -p face_recognition && \
git clone https://gitee.com/leehow1988/face_recognition.git face_recognition/ && \
cd face_recognition/ && \
pip3 install -r requirements.txt && \
python3 setup.py install
# Copy web service script
COPY facerec_service.py /root/facerec_service.py
# Start the web service
CMD cd /root/ && \
python3 facerec_service.py
1
https://gitee.com/leehow1988/face_recognition-1.git
git@gitee.com:leehow1988/face_recognition-1.git
leehow1988
face_recognition-1
face_recognition-1
master

搜索帮助