-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (42 loc) · 1.12 KB
/
Copy pathDockerfile
File metadata and controls
54 lines (42 loc) · 1.12 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
FROM ubuntu:xenial
MAINTAINER David H. Spencer <dspencer@wustl.edu>
LABEL \
description="Platypus image"
RUN apt-get update -y && apt-get install -y \
wget \
git \
unzip \
bzip2 \
tar \
g++ \
gcc \
zlib1g-dev \
make \
python \
python-dev
##############
#HTSlib 1.3.2#
##############
ENV HTSLIB_INSTALL_DIR=/opt/htslib
WORKDIR /tmp
RUN wget https://github.com/samtools/htslib/releases/download/1.3.2/htslib-1.3.2.tar.bz2 && \
tar --bzip2 -xvf htslib-1.3.2.tar.bz2
WORKDIR /tmp/htslib-1.3.2
RUN ./configure --enable-plugins --prefix=$HTSLIB_INSTALL_DIR && \
make && \
make install && \
cp $HTSLIB_INSTALL_DIR/lib/libhts.so* /usr/lib/
###############
#Platypus
###############
ENV PLATYPUS_DIR=/opt/platypus
RUN mkdir /opt/platypus
WORKDIR /opt/platypus
RUN wget http://www.well.ox.ac.uk/bioinformatics/Software/Platypus-latest.tgz && \
tar -zxvf Platypus-latest.tgz
WORKDIR /opt/platypus/Platypus_0.8.1
RUN cp -r /tmp/htslib-1.3.2/htslib ./ && \
./buildPlatypus.sh
WORKDIR /
RUN rm -Rf /tmp/htslib*
ENTRYPOINT ["python", "/opt/platypus/Platypus_0.8.1/Platypus.py"]