forked from bonsai-team/matam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
66 lines (52 loc) · 1.7 KB
/
Dockerfile
File metadata and controls
66 lines (52 loc) · 1.7 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
############################################################
# Dockerfile to build MATAM container images
# Based on Debian
############################################################
# Set the base image to Debian
FROM debian
# File Author / Maintainer
MAINTAINER Bonsai Team
################## BEGIN INSTALLATION ######################
# Install MATAM following the instructions from Github repository
# Ref: https://github.com/bonsai-team/matam
# Install dependencies
RUN apt-get update && apt-get install --no-install-recommends -y \
git \
gcc \
g++ \
wget \
bash \
default-jdk \
automake \
make \
cmake \
libsparsehash-dev \
zlib1g-dev \
bzip2 \
ant
# Python 3 now comes from conda
# Install Conda
RUN wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& bash Miniconda3-latest-Linux-x86_64.sh -b
ENV PATH /root/miniconda3/bin:$PATH
# Install Bioconda and samtools
# Keep channels in this order. See https://github.com/bioconda/bioconda-recipes/issues/12100
# for more details.
RUN conda config --add channels defaults
RUN conda config --add channels bioconda
RUN conda config --add channels conda-forge
RUN conda install --update-deps -y samtools
RUN conda install --update-deps -y numpy
# Clean apt cache
RUN rm -rf /var/lib/apt/lists/*
# Cloning MATAM
RUN git clone https://github.com/bonsai-team/matam.git
# Build MATAM
WORKDIR /matam
RUN ./build.py
#RUN ./index_default_ssu_rrna_db.py --max_memory 4000
# Add index_default_ssu_rrna_db.py in the PATH
# ln -s /matam/index_default_ssu_rrna_db.py /matam/bin/index_default_ssu_rrna_db.py
# Set PATH
ENV PATH /matam/bin:$PATH
##################### INSTALLATION END #####################