-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (33 loc) · 1.06 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
FROM ubuntu:18.04
WORKDIR /
RUN apt-get update && \
apt-get -y install wget && \
apt-get -y install git && \
apt-get -y install libssl-dev && \
apt-get -y install build-essential && \
cd /tmp && \
wget https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz && \
tar -xzf boost_1_70_0.tar.gz && \
cd boost_1_70_0 && \
chmod +x bootstrap.sh && \
./bootstrap.sh && \
./b2 install --prefix=/usr --with-filesystem --with-system --with-coroutine && \
cd ../.. && \
rm -rf boost_1_70_0 && \
cd /tmp && \
wget https://github.com/Kitware/CMake/releases/download/v3.15.4/cmake-3.15.4.tar.gz && \
tar xvzf cmake-3.15.4.tar.gz && \
cd cmake-3.15.4 && \
./bootstrap && \
make -j4 && \
make install && \
cd /tmp && \
rm -rf cmake-3.15.4
RUN cd /tmp && \
git clone https://github.com/martinmozi/restapi-server.git --single-branch --branch async && \
cd restapi-server && \
mkdir build && \
cd build && \
cmake .. && \
make -j4 && \
make install