forked from bitextor/warc2text
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (59 loc) · 1.85 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
65
66
67
68
69
70
71
72
FROM quay.io/centos/centos:stream8
RUN yum -y update \
&& yum -y --nobest --allowerasing install \
gcc \
gcc-c++ \
cmake \
xz \
libicu \
libicu-devel \
&& true
ADD https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz /root
RUN cd /root \
&& tar -zxf boost_1_81_0.tar.gz \
&& cd boost_1_81_0/ \
&& ./bootstrap.sh --prefix=/opt \
&& ./b2 install
ADD https://www.zlib.net/zlib-1.2.13.tar.gz /root
RUN cd /root \
&& tar -zxf zlib-1.2.13.tar.gz \
&& cd zlib-1.2.13 \
&& cmake . -DCMAKE_INSTALL_PREFIX=/opt -DBUILD_SHARED_LIBS=Off \
&& make install
ADD https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz /root
RUN cd /root \
&& tar -xf uchardet-0.0.8.tar.xz \
&& cd uchardet-0.0.8 \
&& cmake . -DCMAKE_INSTALL_PREFIX=/opt -DBUILD_SHARED_LIBS=Off \
&& make install
ADD https://libzip.org/download/libzip-1.9.2.tar.xz /root
RUN cd /root \
&& tar -xf libzip-1.9.2.tar.xz \
&& cd libzip-1.9.2 \
&& cmake . -DCMAKE_INSTALL_PREFIX=/opt -DBUILD_SHARED_LIBS=Off \
&& make install
ADD https://altushost-swe.dl.sourceforge.net/project/lzmautils/xz-5.4.1.tar.gz /root
RUN cd /root \
&& tar -zxf xz-5.4.1.tar.gz \
&& cd xz-5.4.1 \
&& cmake . -DCMAKE_INSTALL_PREFIX=/opt -DBUILD_SHARED_LIBS=Off \
&& make install
ADD https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz /root
RUN cd /root \
&& tar -zxf bzip2-1.0.8.tar.gz \
&& cd bzip2-1.0.8 \
&& make install PREFIX=/opt
ADD https://github.com/unicode-org/icu/releases/download/release-70-1/icu4c-70_1-src.tgz /root
RUN cd /root \
&& tar -zxf icu4c-70_1-src.tgz \
&& cd icu/source \
&& ./configure --prefix=/opt --enable-static --disable-shared \
&& make install
RUN mkdir /root/build
COPY . /root/
WORKDIR /root/build
RUN cmake .. \
-DCMAKE_PREFIX_PATH=/opt \
-DCMAKE_BUILD_TYPE=Release \
&& make -j4 warc2text warcgrep
# RUN ldd bin/warc2text