-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
70 lines (60 loc) · 1.35 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
# syntax=docker/dockerfile:1-labs
# This is the Dockerfile for jaideraf/idzebra-arm64
ARG UBUNTU_VERSION=20.04
FROM --platform=linux/arm64 ubuntu:${UBUNTU_VERSION}
# set timezone
ENV TZ=America/Sao_Paulo
RUN set -eux; \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# update packages and install dependencies
# https://serverfault.com/a/797318
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
autoconf \
automake \
bison \
docbook \
docbook-xml \
docbook-xsl \
gcc \
inkscape \
libexpat1-dev \
libicu-dev \
libidzebra-2.0-modules \
libtool \
libwrap0-dev \
libxml2 \
libxslt1-dev \
make \
pkg-config \
tcl \
xsltproc \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt
# build Yaz
ADD https://github.com/indexdata/yaz.git#v5.34.0 yaz/
RUN cd yaz ; \
./buildconf.sh; \
./configure --with-iconv --with-icu; \
make; \
make install
# build Zebra
ADD https://github.com/indexdata/idzebra.git#v2.2.7 idzebra/
RUN cd idzebra ; \
./buildconf.sh; \
./configure --enable-mod-dom; \
make; \
make install
# remove things after compilation
RUN apt purge -y \
autoconf \
automake \
docbook \
docbook-xml \
docbook-xsl \
gcc \
inkscape \
libtool \
libwrap0-dev \
make \
pkg-config