openface/Dockerfile

32 lines
887 B
Docker
Raw Normal View History

2016-07-12 20:10:30 +08:00
FROM bamos/ubuntu-opencv-dlib-torch:ubuntu_14.04-opencv_2.4.11-dlib_19.0-torch_2016.07.12
2015-10-04 14:08:36 +08:00
MAINTAINER Brandon Amos <brandon.amos.cs@gmail.com>
# TODO: Should be added to opencv-dlib-torch image.
2016-07-24 05:42:59 +08:00
RUN ln -s /root/torch/install/bin/* /usr/local/bin
RUN apt-get update && apt-get install -y \
2015-10-04 14:08:36 +08:00
curl \
git \
graphicsmagick \
2015-10-04 14:08:36 +08:00
python-dev \
python-pip \
python-numpy \
python-nose \
python-scipy \
python-pandas \
python-protobuf\
2015-10-04 14:08:36 +08:00
wget \
zip \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD . /root/openface
RUN cd ~/openface && \
./models/get-models.sh && \
pip2 install -r requirements.txt && \
python2 setup.py install && \
pip2 install -r demos/web/requirements.txt && \
pip2 install -r training/requirements.txt
EXPOSE 8000 9000
CMD /bin/bash -l -c '/root/openface/demos/web/start-servers.sh'