forked from qBioTurin/grapes-dd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (32 loc) · 1010 Bytes
/
Dockerfile
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
FROM gcc:9.3.0
RUN apt update && \
apt install -y \
autoconf \
automake \
libtool \
libgmp3-dev \
make \
time
#download and compile Meddly Library v0.15.0
RUN mkdir /opt/Meddly
WORKDIR /opt/Meddly
RUN wget https://github.com/asminer/meddly/archive/v0.15.0.tar.gz && \
tar xf v0.15.0.tar.gz && \
cd meddly-0.15.0 && \
./autogen.sh && ./configure CXXFLAGS="-O3" --without-gmp --prefix=/usr/local && make && make install
#compile GRAPES
COPY src/GRAPES /opt/GRAPES
WORKDIR /opt/GRAPES
RUN make -B && make grapes && mv grapes /usr/local/bin/
#compile GRAPES-DD
COPY src/*.cpp src/*.hpp src/Makefile /opt/indexing/
COPY docker/* /opt/
WORKDIR /opt/indexing
RUN ln -s /opt/GRAPES /opt/indexing/GRAPES && \
make grapes_dd && \
mv grapes_dd /usr/local/bin/ && \
cd .. && g++ -o mdd4grapes mdd4grapes.cpp && \
mv mdd4grapes /usr/local/bin/ && \
mv start.sh /usr/local/bin/
WORKDIR /
ENTRYPOINT [ "/usr/local/bin/start.sh" ]