-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
74 lines (63 loc) · 2.25 KB
/
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
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
FROM nanjiang/common-ubuntu
LABEL maintainer "Nanjiang Shu ([email protected])"
LABEL version "1.1"
#================================
# Install basics
#===============================
RUN apt-get update -y
RUN apt-get install -y apt-utils \
curl wget bc \
python python-dev python-pip \
build-essential \
cmake \
gnuplot \
kalign \
imagemagick \
gengetopt \
xsltproc \
perlbrew \
locales-all \
default-jre
RUN apt-get install -y blast2
#================================
# Install python package
#===============================
RUN pip install --upgrade pip==9 && pip install biopython==1.70
#================================
# Add topcons2 source code
#===============================
WORKDIR /app
# add the source code to WORKDIR /app
ADD topcons2_webserver ./topcons2
RUN mkdir -p /app/download /data/topcons2_database /scratch/ /static/
# link data
RUN cd /app/topcons2 &&\
ln -s /data/topcons2_database database
# building modhmm
RUN cd /app/topcons2/predictors/source/modhmm && \
bash fresh_install.sh /app/topcons2/predictors/
#================================
# Install HMMER
#===============================
RUN cd /app/download && \
wget http://eddylab.org/software/hmmer3/3.1b2/hmmer-3.1b2-linux-intel-x86_64.tar.gz -O hmmer-3.1b2-linux-intel-x86_64.tar.gz && \
tar -xvzf hmmer-3.1b2-linux-intel-x86_64.tar.gz && \
cd hmmer-3.1b2-linux-intel-x86_64 && \
./configure && \
make && \
make install
#===============================
# install perl moudles
#===============================
RUN perlbrew install-cpanm
RUN /root/perl5/perlbrew/bin/cpanm Moose &&\
/root/perl5/perlbrew/bin/cpanm IPC::Run &&\
/root/perl5/perlbrew/bin/cpanm --force CJFIELDS/BioPerl-1.6.924.tar.gz
#================================
# Setting ENVs
#===============================
ENV PERL5LIB "/app/topcons2/database/pfam_seq/PfamScan"
ENV USER_DIRS "/app"
ENV PATH="/app/topcons2/tools/blast-2.2.26/bin:${PATH}"
RUN rm -rf /app/download
CMD ["/bin/bash" ]