From a5b966984b8e94c11d17335b2eecd4974b98cce7 Mon Sep 17 00:00:00 2001 From: Wolfgang Gerlach Date: Thu, 1 Oct 2015 16:02:07 -0500 Subject: [PATCH] Dockefile for mothur --- Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..10cf1c78 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +FROM debian:jessie + +# TODO: install only the actually required boost libraries + +RUN apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install -y \ + libboost-all-dev \ + make \ + g++ \ + libreadline-dev \ + zlib1g-dev \ + libncurses5-dev + + +ADD . /mothur/ + +# for Linux TARGET_ARCH has to be commented +RUN sed -i -e 's/TARGET_ARCH /#TARGET_ARCH /' \ + -e 's/zlib.a/libz.a/' \ + -e 's/BOOST_LIBRARY_DIR=\".*\"/BOOST_LIBRARY_DIR=\"\/usr\/lib\/x86_64-linux-gnu\/\"/' \ + /mothur/makefile + +RUN cd /mothur && make + +ENV PATH "/mothur/:$PATH" + +# example +# git clone -b v1.36.1 https://github.com/mothur/mothur.git +# cd mothur +# docker build -t mothur:v1.36.1 . +