-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile_Alpine_Static
22 lines (22 loc) · 1.42 KB
/
Dockerfile_Alpine_Static
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine
RUN apk add nghttp2-static nghttp2-dev openssl-libs-static openssl-dev libcrypto1.1 cmake boost-static boost-dev luajit-dev gcc g++ unzip wget libexecinfo-dev libexecinfo-static make && \
wget /~https://github.com/Tencent/rapidjson/archive/refs/heads/master.zip && \
unzip master.zip && \
cd rapidjson-master && cmake . && cmake --build ./ && cmake --install ./ && \
cd .. && \
rm rapidjson-master master.zip -rf && \
wget /~https://github.com/microsoft/mimalloc/archive/refs/heads/master.zip && \
unzip master.zip && \
cmake -S mimalloc-master -B mimalloc-master/build -DCMAKE_BUILD_TYPE=Release .. && \
cmake --build mimalloc-master/build && \
cp $(find ./ -name libmimalloc.a) /lib/ && \
rm -rf mimalloc-master master.zip && \
wget /~https://github.com/wallyatgithub/h2loadrunner/archive/refs/heads/main.zip && \
unzip main.zip && \
cmake -S h2loadrunner-main -B h2loadrunner-main/build -DCMAKE_BUILD_TYPE=Release .. -DALPINE_STATIC=ON && \
cmake --build h2loadrunner-main/build && \
cp h2loadrunner-main/build/h2loadrunner /usr/bin/ && \
mkdir -p /usr/share/h2loadrunner/ && \
cp h2loadrunner-main/config_schema.json /usr/share/h2loadrunner/ && \
rm -rf h2loadrunner-main main.zip && \
apk del nghttp2-static nghttp2-dev openssl-libs-static openssl-dev libcrypto1.1 cmake boost-static boost-dev luajit-dev gcc g++ unzip wget libexecinfo-dev libexecinfo-static make