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>
|
2015-10-28 16:33:40 +08:00
|
|
|
|
2016-07-24 05:20:27 +08:00
|
|
|
# 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
|
2016-07-24 05:20:27 +08:00
|
|
|
|
2015-10-28 16:33:40 +08:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-10-04 14:08:36 +08:00
|
|
|
curl \
|
|
|
|
git \
|
2016-01-13 04:21:09 +08:00
|
|
|
graphicsmagick \
|
2017-05-02 01:40:54 +08:00
|
|
|
libssl-dev \
|
|
|
|
libffi-dev \
|
2015-10-04 14:08:36 +08:00
|
|
|
python-dev \
|
|
|
|
python-pip \
|
2016-01-09 03:27:34 +08:00
|
|
|
python-numpy \
|
2016-01-12 05:12:41 +08:00
|
|
|
python-nose \
|
2016-01-09 03:27:34 +08:00
|
|
|
python-scipy \
|
|
|
|
python-pandas \
|
2017-05-02 01:40:54 +08:00
|
|
|
python-protobuf \
|
|
|
|
python-openssl \
|
2015-10-04 14:08:36 +08:00
|
|
|
wget \
|
2015-10-28 16:33:40 +08:00
|
|
|
zip \
|
|
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
2016-05-06 23:13:19 +08:00
|
|
|
ADD . /root/openface
|
2017-05-02 10:59:23 +08:00
|
|
|
RUN python -m pip install --upgrade --force pip
|
2016-05-06 23:13:19 +08:00
|
|
|
RUN cd ~/openface && \
|
2015-12-23 09:58:06 +08:00
|
|
|
./models/get-models.sh && \
|
|
|
|
pip2 install -r requirements.txt && \
|
2015-12-23 12:42:56 +08:00
|
|
|
python2 setup.py install && \
|
2017-05-02 10:59:23 +08:00
|
|
|
pip2 install --user --ignore-installed -r demos/web/requirements.txt && \
|
2015-12-23 12:42:56 +08:00
|
|
|
pip2 install -r training/requirements.txt
|
2015-11-01 05:10:59 +08:00
|
|
|
|
2015-12-24 07:41:38 +08:00
|
|
|
EXPOSE 8000 9000
|
2016-05-06 23:13:19 +08:00
|
|
|
CMD /bin/bash -l -c '/root/openface/demos/web/start-servers.sh'
|