Skip to content

Commit

Permalink
Added Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm-targa committed Jul 20, 2023
1 parent 5aa589b commit 3a59c80
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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 git python3 python3-setuptools

# 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}"

# INSTALL chewBBACA and dependencies listed in requirements.txt
WORKDIR /WORKY/chewBBACA
# Clone chewBBACA repo
RUN git clone https://github.com/B-UMMI/chewBBACA.git
WORKDIR /WORKY/chewBBACA/chewBBACA
# Install chewBBACA and dependencies
RUN python3 setup.py install
ENV PATH="/WORKY/chewBBACA/chewBBACA:${PATH}"

WORKDIR /WORKY/

0 comments on commit 3a59c80

Please sign in to comment.