-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEarthfile
47 lines (43 loc) · 1.18 KB
/
Earthfile
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
VERSION 0.7
deps:
FROM debian:12
RUN apt-get update && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get -y install --no-install-recommends \
ca-certificates \
curl \
xz-utils \
gcc \
g++ \
valac \
meson \
pkg-config \
libglib2.0-dev \
libgirepository1.0-dev \
python3-gi \
libxapian-dev \
libzstd-dev \
liblzma-dev \
libicu-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN curl \
-L https://github.com/openzim/libzim/archive/7.2.2.tar.gz \
-o libzim-7.2.2.tar.gz && \
tar -xvf libzim-7.2.2.tar.gz && \
cd libzim-7.2.2 && \
meson setup \
--prefix=/usr \
--libdir=lib \
--wrap-mode=nodownload \
build && \
ninja -C build && \
ninja -C build install && \
cd && \
rm -rf libzim*
tests:
FROM +deps
COPY . .
RUN meson setup -Dtests=true build
RUN meson compile -C build
RUN meson test -C build