forked from karel-brinda/MiniPhy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (40 loc) Β· 1.46 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
48
49
# Base image
FROM --platform=linux/amd64 debian:bookworm
# Install necessary packages
RUN apt-get update && apt-get install -y \
wget \
git \
curl \
xz-utils \
build-essential \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Install Miniconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh && \
bash /tmp/miniconda.sh -b -p /opt/conda && \
rm /tmp/miniconda.sh
ENV PATH=/opt/conda/bin:$PATH
# Update Conda and install Mamba for faster package management
RUN conda update -n base -c defaults conda && \
conda config --set channel_priority strict && \
conda install -n base -c conda-forge mamba
# Clone and install MiniPhy dependencies
RUN git clone https://github.com/LinoHofstetter/MiniPhy && \
cd MiniPhy && \
mamba install -c conda-forge -c bioconda -c defaults \
make "python>=3.7" "snakemake-minimal>=6.2.0" "mamba>=0.20.0" && \
make conda
# Install Attotree and dependencies
RUN mamba install -c bioconda -c conda-forge attotree && \
mamba install -c bioconda mash && \
mamba install -c bioconda quicktree
# Install additional Python packages
RUN pip3 install --upgrade pip && \
pip3 install pandas numpy biopython # Add any other packages you need here
# Set working directory
WORKDIR /MiniPhy
# Expose the input and output directories
VOLUME ["/MiniPhy/input", "/MiniPhy/output"]
# Default command to display help
CMD ["make", "help"]