Dockerfile 952 B

1234567891011121314151617181920212223242526272829303132333435
  1. FROM daocloud.io/library/ubuntu:12.10
  2. LABEL Name=openface-docker Version=0.0.1
  3. EXPOSE 3000
  4. 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"
  5. RUN apt-get update --fix-missing
  6. RUN apt-get -y install curl wget python python-numpy python-scipy python-dev python-pip git-core vim
  7. WORKDIR /app
  8. ADD . /app
  9. RUN mkdir -p ~/.pip
  10. RUN echo -e '\n\
  11. [global] \n\
  12. trusted-host=mirrors.aliyun.com \n\
  13. index-url=https://mirrors.aliyun.com/pypi/simple/ \n\
  14. ' > ~/.pip/pip.conf
  15. RUN apt-get -y install libboost-python-dev cmake
  16. RUN pip install dlib
  17. # 暂时不要
  18. # RUN apt-get install git
  19. # RUN git clone --recursive https://github.com/cmusatyalab/openface.git src
  20. # RUN cd src; git checkout 0.2.1
  21. # RUN python setup.py install
  22. RUN python3 -m pip install -r requirements.txt
  23. RUN make clean
  24. RUN rm -rf ~/.cache/pip
  25. # CMD ["python3", "-m", "openface-docker"]