-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (33 loc) · 975 Bytes
/
Dockerfile
File metadata and controls
45 lines (33 loc) · 975 Bytes
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
42
43
44
45
FROM tensorflow/tensorflow:1.11.0-devel-gpu
ENV HOME_PROJECT=/home/pointconv
ENV TF_GROUPING_DIR=$HOME_PROJECT/tf_ops/grouping
ENV TF_TEST_DIR=$TF_GROUPING_DIR/test
ENV TF_SAMPLING_DIR=$HOME_PROJECT/tf_ops/sampling
WORKDIR $HOME_PROJECT
COPY . .
RUN apt-get update && apt-get install -y \
python-dev \
python-pip \
libhdf5-dev \
python-h5py \
g++ \
build-essential \
cmake \
wget \
python-tk \
vim \
python-h5py \
&& rm -rf /var/lib/apt/lists/*
#libcuda.so.1 for tensorflow
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64/stubs
RUN ln -s -f /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1
#make cpp and cuda dependencies
WORKDIR $TF_GROUPING_DIR
RUN make all -f tf_grouping_compile.sh
WORKDIR $TF_TEST_DIR
RUN make -f compile.sh
WORKDIR $TF_SAMPLING_DIR
RUN make all -f tf_sampling_compile.sh
#install dependencies
WORKDIR $HOME_PROJECT
RUN pip install -r requirements.txt