Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
83 lines (71 loc) · 2.34 KB
/
Copy pathDockerfile
File metadata and controls
83 lines (71 loc) · 2.34 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
FROM tensorflow/tensorflow:1.2.0-devel-gpu-py3
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
libfreetype6-dev \
libpng12-dev \
libzmq3-dev \
pkg-config \
python3 \
python3-setuptools \
python3-dev \
python3-pip \
python3-numpy \
python3-scipy \
python3-sklearn \
python3-pandas \
python \
python-pip \
python-numpy \
python-matplotlib \
python-setuptools \
python-dev \
rsync \
software-properties-common \
unzip \
libhdf5-serial-dev \
git \
cmake \
autoconf \
libbz2-dev \
liblzma-dev \
libncurses5-dev \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt
ENV TENSORFLOW_SRC_PATH=/opt/tensorflow
ENV WARP_CTC_PATH=/opt/warp-ctc/build
ENV CUDA_HOME=/usr/local/cuda
RUN git clone https://github.com/tensorflow/tensorflow.git tensorflow
RUN git clone https://github.com/nmiculinic/warp-ctc.git warp-ctc
RUN git clone https://github.com/isovic/graphmap.git graphmap --recursive
RUN git clone https://github.com/isovic/samscripts.git samscripts
RUN git clone https://github.com/samtools/samtools
RUN git clone https://github.com/samtools/htslib
RUN git clone https://github.com/samtools/bcftools
WORKDIR /opt/htslib
RUN autoheader && autoconf && ./configure
RUN make && make install
WORKDIR /opt/samtools
RUN autoconf -Wno-syntax && ./configure && make && make install
WORKDIR /opt/bcftools
RUN make && make install
WORKDIR /opt/warp-ctc
RUN mkdir build
WORKDIR /opt/warp-ctc/build
RUN cmake .. && make
WORKDIR /opt/warp-ctc/tensorflow_binding
RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1
RUN LD_LIBRARY_PATH=/usr/local/cuda/lib64/stubs/:$LD_LIBRARY_PATH python3 setup.py install
RUN rm /usr/local/cuda/lib64/stubs/libcuda.so.1
WORKDIR /opt/graphmap
RUN make && make install
# For CUDA profiling, TensorFlow requires CUPTI.
ENV LD_LIBRARY_PATH /opt/warp-ctc/build:/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
RUN pip3 --no-cache-dir install tflearn Pillow h5py python-dotenv sigopt edlib slacker-log-handler pysam tqdm seaborn pandas cython
WORKDIR /
RUN mkdir /code
RUN mkdir /data
WORKDIR /code
ENV PYTHONPATH=/code