-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dockerfile
35 lines (29 loc) · 1.06 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
FROM ubuntu:22.04
MAINTAINER UMMI, [email protected]
# Create directory to store files
WORKDIR /WORKY/
# Install wget to download files, git to clone repos and Python 3 to install and use chewBBACA
RUN apt update && apt install -y wget python3 python3-pip
# Install BLAST
WORKDIR /WORKY/BLAST
# Download and extract
RUN wget https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.9.0/ncbi-blast-2.9.0+-x64-linux.tar.gz && \
tar -xzvf ncbi-blast-2.9.0+-x64-linux.tar.gz && \
rm ncbi-blast-2.9.0+-x64-linux.tar.gz
# Add BLAST executables to PATH
ENV PATH="/WORKY/BLAST/ncbi-blast-2.9.0+/bin:${PATH}"
# Install MAFFT
WORKDIR /WORKY/MAFFT
RUN wget https://mafft.cbrc.jp/alignment/software/mafft_7.520-1_amd64.deb
# Install
RUN dpkg -i mafft_7.520-1_amd64.deb
ENV PATH="/WORKY/MAFFT:${PATH}"
# Install FastTree
WORKDIR /WORKY/FastTree
RUN wget http://www.microbesonline.org/fasttree/FastTree
# Change permissions for executable
RUN chmod 755 *
ENV PATH="/WORKY/FastTree:${PATH}"
WORKDIR /WORKY/
# Install chewBBACA and Python dependencies
RUN pip install chewbbaca