-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (30 loc) · 819 Bytes
/
Dockerfile
File metadata and controls
38 lines (30 loc) · 819 Bytes
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
FROM ubuntu
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y tzdata
RUN apt-get install -y git-all
RUN apt-get install -y build-essential
RUN apt-get install -y zlib1g-dev
RUN apt-get install -y wget
RUN apt-get install -y openssl libssl-dev
## Install sdsl
### Install cmake
WORKDIR /git
RUN wget https://cmake.org/files/v3.11/cmake-3.11.4.tar.gz
RUN tar xf cmake-3.11.4.tar.gz
WORKDIR /git/cmake-3.11.4
RUN ./configure
RUN make
ENV PATH="/git/cmake-3.11.4/:/git/cmake-3.11.4/bin/:${PATH}"
WORKDIR /git
RUN git clone https://github.com/simongog/sdsl-lite.git
RUN cd sdsl-lite
WORKDIR /git/sdsl-lite
RUN ./install.sh /usr/local/
COPY ./ /mantis
WORKDIR /mantis
RUN mkdir -p build
RUN cd build
RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local
RUN make install
CMD mantis