forked from ExSidius/openpose-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (38 loc) · 929 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
36
37
38
39
40
41
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04
RUN echo "Installing dependencies..." && \
apt-get -y --no-install-recommends update && \
apt-get -y --no-install-recommends upgrade && \
apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
libatlas-base-dev \
libprotobuf-dev \
libleveldb-dev \
libsnappy-dev \
libhdf5-serial-dev \
protobuf-compiler \
libboost-all-dev \
libgflags-dev \
libgoogle-glog-dev \
liblmdb-dev \
pciutils \
python3-setuptools \
python3-dev \
python3-pip \
opencl-headers \
ocl-icd-opencl-dev \
libviennacl-dev \
libcanberra-gtk-module \
libopencv-dev && \
python3 -m pip install \
numpy \
protobuf \
opencv-python
RUN echo "Downloading and building OpenPose..." && \
git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git && \
mkdir -p /openpose/build && \
cd /openpose/build && \
cmake .. && \
make -j`nproc`
WORKDIR /openpose