FROM daocloud.io/library/ubuntu:12.10 LABEL Name=openface-docker Version=0.0.1 EXPOSE 3000 ENV ENV PATH="/workdir/frameworks/torch/src/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/cuda/bin" RUN apt-get update --fix-missing RUN apt-get -y install curl wget python python-numpy python-scipy python-dev python-pip git-core vim WORKDIR /app ADD . /app RUN mkdir -p ~/.pip RUN echo -e '\n\ [global] \n\ trusted-host=mirrors.aliyun.com \n\ index-url=https://mirrors.aliyun.com/pypi/simple/ \n\ ' > ~/.pip/pip.conf RUN apt-get -y install libboost-python-dev cmake RUN pip install dlib # 暂时不要 # RUN apt-get install git # RUN git clone --recursive https://github.com/cmusatyalab/openface.git src # RUN cd src; git checkout 0.2.1 # RUN python setup.py install RUN python3 -m pip install -r requirements.txt RUN make clean RUN rm -rf ~/.cache/pip # CMD ["python3", "-m", "openface-docker"]