-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (45 loc) · 1.14 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
FROM debian:testing-slim
# Set system locale to something sensible (en_US.UTF-8)
ARG locale='en_US.UTF-8'
ENV DEBIAN_FRONTEND noninteractive
ADD . /liboparl
WORKDIR /liboparl
RUN apt update && apt install -y --no-install-recommends \
locales && \
echo "${locale} UTF-8" > /etc/locale.gen && \
locale-gen ${locale} && \
dpkg-reconfigure locales && \
/usr/sbin/update-locale LANG=${locale} && \
export LC_ALL=${locale} && \
apt install -y --no-install-recommends \
valac \
valadoc \
gobject-introspection \
libjson-glib-dev \
libgirepository1.0-dev \
meson \
gettext \
git && \
mkdir build && \
cd build && \
meson --buildtype=release --prefix=/usr && \
ninja && \
ninja install && \
rm -rf /usr/share/meson && \
apt remove --purge -y \
build-essential \
ninja \
valac \
valadoc \
libjson-glib-dev \
libgirepository1.0-dev \
meson \
gettext \
git && \
apt autoremove -y && \
apt install -y --no-install-recommends \
json-glib-1.0 \
gir1.2-json-1.0 && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /liboparl && \
apt clean