-
Notifications
You must be signed in to change notification settings - Fork 184
/
Dockerfile
35 lines (28 loc) · 878 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM mxnet/python:1.1.0_nccl
RUN apt-get update
RUN apt-get install -y libhdf5-serial-dev libboost-all-dev nano cmake libosmesa6-dev freeglut3-dev
#RUN apt install zip
RUN wget http://dlib.net/files/dlib-19.6.tar.bz2; \
tar xvf dlib-19.6.tar.bz2; \
cd dlib-19.6/; \
mkdir build; \
cd build; \
cmake ..; \
cmake --build . --config Release; \
make install; \
cd ..; \
python setup.py install --yes USE_AVX_INSTRUCTIONS --yes DLIB_USE_CUDA
RUN pip install http://download.pytorch.org/whl/cu90/torch-0.3.1-cp27-cp27mu-linux_x86_64.whl
RUN pip install opencv-python torchvision==0.2.1 scikit-image cvbase pandas mmdnn
WORKDIR /app
ADD . /app
RUN mkdir build; \
cd build; \
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=../demoCode ..; \
make; \
make install; \
cd ..
WORKDIR /app/demoCode
EXPOSE 80
ENV NAME World
CMD ["python", "testBatchModel.py"]