Debian Codegraph @

container/Dockerfile

raw
1 FROM debian:wheezy
2
3 MAINTAINER Claire Lemaitre [email protected]
4
5 # Set MindTheGap version
6 ENV MTG_VERSION 2.1.0
7
8 # Set noninteratve mode
9 ENV DEBIAN_FRONTEND noninteractive
10 ENV PACKAGES wget gcc g++ make cmake zlib1g-dev libboost-dev git
11
12 ENV DIR /opt
13 ENV SOURCE MindTheGap
14 ENV BUILD build
15
16 WORKDIR ${DIR}
17
18 RUN apt-get update -y && \
19 apt-get install -y --no-install-recommends ${PACKAGES}
20
21 RUN git config --global http.sslVerify false
22
23 # clone the github repo
24 RUN git clone --recursive https://github.com/GATB/MindTheGap.git
25
26 WORKDIR ${DIR}/${SOURCE}
27 RUN git submodule init
28
29 # Using an official release
30 RUN git checkout v${MTG_VERSION}
31 RUN git submodule update
32
33 RUN mkdir ${BUILD}
34 WORKDIR ${DIR}/${SOURCE}/${BUILD}
35
36 RUN cmake ..
37 RUN make
38
39 # symlink binary in /usr/local/bin
40 RUN ln -s ${DIR}/${SOURCE}/${BUILD}/bin/MindTheGap /usr/local/bin
41
42
43
44
45
46