-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (39 loc) · 1.33 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
FROM rocker/r-ver:4.1.0
MAINTAINER Paul Cantalupo <[email protected]>
RUN apt-get update && apt-get install --yes \
build-essential \
apt-utils \
wget \
git \
cpanminus \
perl-doc
WORKDIR /opt
# get bioperl repos
RUN git clone https://github.com/bioperl/bioperl-live
RUN git clone https://github.com/bioperl/Bio-EUtilities
ENV PERL5LIB "$PERL5LIB:/opt/bioperl-live/lib:/opt/Bio-EUtilities/lib"
RUN cpanm LWP::UserAgent
# https://github.com/sjackman/docker-bio/issues/2#issuecomment-257991372
RUN apt-get install --yes libxml-sax-expat-incremental-perl
RUN cpanm XML::Simple
# BLAST install - ftp does not work so using https
RUN wget -v https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.13.0+-x64-linux.tar.gz
RUN tar xvzf ncbi-blast-2.13.0+-x64-linux.tar.gz
RUN rm ncbi-blast-2.13.0+-x64-linux.tar.gz
ENV PATH "$PATH:/opt/ncbi-blast-2.13.0+/bin"
# install R taxonomizr for taxonomy support
ENV DEBIAN_FRONTEND=noninteractive
RUN apt install -y r-base
RUN apt install -y libcurl4-openssl-dev
RUN R -e "install.packages('taxonomizr')"
# install Annotater
RUN git clone https://github.com/pcantalupo/annotater
ENV PATH "$PATH:/opt/annotater:/opt/annotater/bin"
ENV PERL5LIB "$PERL5LIB:/opt/annotater"
WORKDIR /opt/annotater
RUN perl Makefile.PL
RUN make
RUN make test
#RUN prove -v t/Reann.t
WORKDIR /tmp
CMD ["/bin/bash"]