-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (32 loc) · 1.04 KB
/
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
40
# OS image
FROM ubuntu:16.04
# Install prerequisites
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update -qq && \
apt-get upgrade -qq && \
apt-get install -qq build-essential clang && \
apt-get install -qq software-properties-common && \
apt-get install -qq curl git htop wget && \
apt-get install -qq cmake qt5-default libcpprest-dev && \
rm -rf /var/lib/apt/lists/*
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
COPY src /root/WEVOTE-web/src
COPY cmake /root/WEVOTE-web/cmake
COPY CMakeLists.txt /root/WEVOTE-web/
WORKDIR /root/WEVOTE-web
RUN mkdir build
WORKDIR /root/WEVOTE-web/build
RUN cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/root/wevote-install ..
RUN make && make install
# Download Taxonomy DB
WORKDIR /root
RUN mkdir db
WORKDIR db
RUN wget ftp://ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdump.tar.gz && tar xzf taxdump.tar.gz && rm taxdump.tar.gz
EXPOSE 34568
CMD ["/root/wevote-install/bin/wevoteREST" , "-d","/root/db" , "-H" , "0.0.0.0"]