-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileBase
46 lines (40 loc) · 1.15 KB
/
DockerfileBase
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
41
42
43
44
#FROM debian:9
FROM amd64/python:3.7
# Most dependencies
RUN apt-get update && \
apt-get clean && \
apt-get --fix-missing -y install \
build-essential \
cmake \
gdb \
git \
libboost-chrono-dev \
libboost-filesystem-dev \
libboost-system-dev \
librabbitmq-dev \
wget && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/local/deps && \
git clone https://github.com/jbeder/yaml-cpp && \
cd yaml-cpp && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release \
-DYAML_CPP_BUILD_CONTRIB:BOOL=FALSE \
-DYAML_CPP_BUILD_TOOLS:BOOL=FALSE \
-DYAML_CPP_BUILD_TESTS:BOOL=FALSE \
-DYAML_BUILD_SHARED_LIBS=TRUE \
.. && \
make install
RUN cd /usr/local/deps && \
git clone https://github.com/Tencent/rapidjson && \
cd rapidjson && \
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release \
-DRAPIDJSON_BUILD_DOC=FALSE \
-DRAPIDJSON_BUILD_EXAMPLES=FALSE \
-DRAPIDJSON_BUILD_TESTS=FALSE \
-DRAPIDJSON_BUILD_THIRDPARTY_GTEST=FALSE \
.. && \
make install