Docker config changes supporting TLS (part 2). This fixes an issue with pip and some of the dependent libraries.

This commit is contained in:
montag 2017-05-01 19:59:23 -07:00 committed by Brandon Amos
parent 47afcbf35a
commit 268d2c465e
1 changed files with 2 additions and 1 deletions

View File

@ -23,11 +23,12 @@ RUN apt-get update && apt-get install -y \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD . /root/openface ADD . /root/openface
RUN python -m pip install --upgrade --force pip
RUN cd ~/openface && \ RUN cd ~/openface && \
./models/get-models.sh && \ ./models/get-models.sh && \
pip2 install -r requirements.txt && \ pip2 install -r requirements.txt && \
python2 setup.py install && \ python2 setup.py install && \
pip2 install -r demos/web/requirements.txt && \ pip2 install --user --ignore-installed -r demos/web/requirements.txt && \
pip2 install -r training/requirements.txt pip2 install -r training/requirements.txt
EXPOSE 8000 9000 EXPOSE 8000 9000