-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
34 lines (25 loc) · 1.37 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
FROM ubuntu:18.04
ARG BRANCH=master
LABEL maintainer="[email protected]"
RUN apt-get update \
&& apt-get install -yq git unzip vim curl wget build-essential liblog-log4perl-perl libgetopt-argvfile-perl libdatetime-format-natural-perl ncbi-entrez-direct libbio-perl-perl libtest-script-perl \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/greatfireball/NCBI-Taxonomy
RUN cd /NCBI-Taxonomy && perl Makefile.PL && make && perl make_taxid_indizes.pl
RUN sed -i 's#\./t/data#/NCBI-Taxonomy#' /NCBI-Taxonomy/lib/NCBI/Taxonomy.pm
RUN git clone https://github.com/douglasgscofield/dispr
RUN ln -s /dispr/dispr /usr/bin/dispr
# Install optional re::engine::RE2 for better performance
RUN perl -MCPAN -e 'my $c = "CPAN::HandleConfig"; $c->load(doit => 1, autoconfig => 1); $c->edit(prerequisites_policy => "follow"); $c->edit(build_requires_install_policy => "yes"); $c->commit'
RUN cpan -f re::engine::RE2
RUN git clone https://github.com/marbl/Krona
RUN mkdir /Krona/KronaTools/taxonomy
RUN cd /Krona/KronaTools && ./install.pl && ./updateTaxonomy.sh
ENV PERL5LIB=/NCBI-Taxonomy/lib:$PERL5LIB
RUN git clone https://github.com/BioInf-Wuerzburg/SeqFilter
RUN cd /SeqFilter && make
RUN ln -s /SeqFilter/bin/SeqFilter /usr/bin/SeqFilter
COPY docker/whoami /usr/local/bin/whoami
COPY . /bcdatabaser
WORKDIR /data
ENTRYPOINT ["perl", "/bcdatabaser/bin/bcdatabaser.pl"]