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
|
FROM debian:wheezy
MAINTAINER Claire Lemaitre claire.lemaitre@inria.fr
# Set MindTheGap version
ENV MTG_VERSION 2.1.0
# Set noninteratve mode
ENV DEBIAN_FRONTEND noninteractive
ENV PACKAGES wget gcc g++ make cmake zlib1g-dev libboost-dev git
ENV DIR /opt
ENV SOURCE MindTheGap
ENV BUILD build
WORKDIR ${DIR}
RUN apt-get update -y && \
apt-get install -y --no-install-recommends ${PACKAGES}
RUN git config --global http.sslVerify false
# clone the github repo
RUN git clone --recursive https://github.com/GATB/MindTheGap.git
WORKDIR ${DIR}/${SOURCE}
RUN git submodule init
# Using an official release
RUN git checkout v${MTG_VERSION}
RUN git submodule update
RUN mkdir ${BUILD}
WORKDIR ${DIR}/${SOURCE}/${BUILD}
RUN cmake ..
RUN make
# symlink binary in /usr/local/bin
RUN ln -s ${DIR}/${SOURCE}/${BUILD}/bin/MindTheGap /usr/local/bin
|