forked from chatnoir-eu/chatnoir-resiliparse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
64 lines (59 loc) · 2.24 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
ARG TARGET_ARCH
FROM quay.io/pypa/manylinux_2_28_${TARGET_ARCH}:latest
RUN set -x \
&& yum install -y \
gcc-toolset-10-libasan-devel \
lz4-devel \
zlib-devel
RUN set -x \
&& curl -Lf https://gitlab.freedesktop.org/uchardet/uchardet/-/archive/v0.0.8/uchardet-v0.0.8.tar.gz > uchardet.tar.gz \
&& tar -xf uchardet.tar.gz \
&& (cd uchardet-* && mkdir build \
&& cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_STANDARD=17 \
-DLEXBOR_BUILD_STATIC=ON \
-B build \
&& cmake --build build -j$(nproc) --target install) \
&& rm -rf uchardet*
RUN set -x \
&& curl -Lf https://github.com/lexbor/lexbor/archive/refs/tags/v2.2.0.tar.gz > lexbor.tar.gz \
&& tar -xf lexbor.tar.gz \
&& (cd lexbor-* && mkdir build \
&& cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLEXBOR_BUILD_SHARED=ON \
-DLEXBOR_BUILD_STATIC=OFF \
-DLEXBOR_OPTIMIZATION_LEVEL=-O3 \
-B build \
&& cmake --build build -j$(nproc) --target install) \
&& rm -rf lexbor*
RUN set -x \
&& curl -Lf https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.0.tar.gz > abseil.tar.gz \
&& tar -xf abseil.tar.gz \
&& (cd abseil-cpp-* && mkdir build \
&& cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_CXX_STANDARD=17 \
-DBUILD_SHARED_LIBS=OFF \
-B build \
&& cmake --build build -j$(nproc) --target install) \
&& rm -rf abseil*
RUN set -x \
&& curl -Lf https://github.com/google/re2/releases/download/2023-08-01/re2-2023-08-01.tar.gz > re2.tar.gz \
&& tar -xf re2.tar.gz \
&& (cd re2-* && mkdir build \
&& cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCMAKE_CXX_STANDARD=17 \
-DBUILD_SHARED_LIBS=ON \
-DRE2_BUILD_TESTING=OFF \
-B build \
&& cmake --build build -j$(nproc) --target install) \
&& rm -rf re2*