Permalink
...
Comparing changes
Open a pull request
- 1 commit
- 1 file changed
- 0 commit comments
- 1 contributor
Unified
Split
Showing
with
30 additions
and 0 deletions.
- +30 −0 Dockerfile
View
30
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 . | ||
| + |