Skip to content

Commit

Permalink
chore(Docker): Update Docker image to use python base, and minor vers…
Browse files Browse the repository at this point in the history
…ion updates.
  • Loading branch information
aaronmussig committed Sep 13, 2021
1 parent 6dbc45d commit 4f93d1f
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,28 @@
# docker build --build-arg VER=1.2.3 --no-cache -t ecogenomic/gtdbtk:latest -t ecogenomic/gtdbtk:1.2.3 .
# docker push ecogenomic/gtdbtk:latest && sudo docker push ecogenomic/gtdbtk:1.2.3

FROM ubuntu:18.04
FROM python:3.8-slim-bullseye

ARG VER

# ---------------------------------------------------------------------------- #
# --------------------- INSTALL HMMER, PYTHON3, FASTTREE---------------------- #
# ---------------------------------------------------------------------------- #
RUN apt-get update -y -m && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
wget \
libgomp1 \
hmmer=3.1b2+dfsg-5ubuntu1 \
mash=2.0-2 \
prodigal=1:2.6.3-1 \
fasttree=2.1.10-1 \
unzip \
python3.8 \
python3-pip \
python3-setuptools \
python3-wheel && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --no-install-suggests -y \
wget \
libgomp1 \
libgsl25 \
libgslcblas0 \
hmmer=3.* \
mash=2.2.* \
prodigal=1:2.6.* \
fasttree=2.1.* \
unzip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
ln -s /usr/bin/fasttree /usr/bin/FastTree && \
ln -s /usr/bin/fasttreeMP /usr/bin/FastTreeMP

# ---------------------------------------------------------------------------- #
# ------------------------------ ALIAS PYTHON3 ------------------------------ #
# ---------------------------------------------------------------------------- #
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 && \
update-alternatives --set python /usr/bin/python3.8

# ---------------------------------------------------------------------------- #
# ----------------------------- INSTALL PPLACER ------------------------------ #
# ---------------------------------------------------------------------------- #
Expand All @@ -45,9 +36,9 @@ RUN wget https://github.com/matsen/pplacer/releases/download/v1.1.alpha19/pplace
# ---------------------------------------------------------------------------- #
# ----------------------------- INSTALL FASTANI ------------------------------ #
# ---------------------------------------------------------------------------- #
RUN wget https://github.com/ParBLiSS/FastANI/releases/download/v1.32/fastANI-Linux64-v1.32.zip -q && \
unzip fastANI-Linux64-v1.32.zip -d /usr/bin && \
rm fastANI-Linux64-v1.32.zip
RUN wget https://github.com/ParBLiSS/FastANI/releases/download/v1.33/fastANI-Linux64-v1.33.zip -q && \
unzip fastANI-Linux64-v1.33.zip -d /usr/bin && \
rm fastANI-Linux64-v1.33.zip

# ---------------------------------------------------------------------------- #
# --------------------- SET GTDB-TK MOUNTED DIRECTORIES ---------------------- #
Expand Down

0 comments on commit 4f93d1f

Please sign in to comment.