-
-
Notifications
You must be signed in to change notification settings - Fork 620
/
Dockerfile
143 lines (134 loc) · 2.74 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
FROM ubuntu:noble AS builder
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -qy --no-install-recommends \
audacious-dev \
ca-certificates \
clang \
cmake \
curl \
gfortran \
git \
gperf \
libarchive-dev \
libaudclient-dev \
libc++-dev \
libc++abi-dev \
libcairo2-dev \
libcurl4-openssl-dev \
libdbus-glib-1-dev \
libical-dev \
libimlib2-dev \
libircclient-dev \
libiw-dev \
libjsoncpp-dev \
liblua5.3-dev \
libmicrohttpd-dev \
libmysqlclient-dev \
libncurses-dev \
libpulse-dev \
librhash-dev \
librsvg2-dev \
libssl-dev \
libsystemd-dev \
libuv1-dev \
libxdamage-dev \
libxext-dev \
libxft-dev \
libxinerama-dev \
libxml2-dev \
libxmmsclient-dev \
libxnvctrl-dev \
ninja-build \
patch \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY . /conky
WORKDIR /conky/build
ARG X11=yes
RUN sh -c 'if [ "$X11" = "yes" ] ; then \
cmake -G Ninja \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_INSTALL_PREFIX=/opt/conky \
-DBUILD_AUDACIOUS=ON \
-DBUILD_HTTP=ON \
-DBUILD_ICAL=ON \
-DBUILD_ICONV=ON \
-DBUILD_IRC=ON \
-DBUILD_JOURNAL=ON \
-DBUILD_LUA_CAIRO=ON \
-DBUILD_LUA_CAIRO_XLIB=ON \
-DBUILD_LUA_IMLIB2=ON \
-DBUILD_LUA_RSVG=ON \
-DBUILD_MYSQL=ON \
-DBUILD_NVIDIA=ON \
-DBUILD_PULSEAUDIO=ON \
-DBUILD_RSS=ON \
-DBUILD_WAYLAND=OFF \
-DBUILD_WLAN=ON \
-DBUILD_XMMS2=ON \
../ \
; else \
cmake -G Ninja \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_INSTALL_PREFIX=/opt/conky \
-DBUILD_AUDACIOUS=ON \
-DBUILD_HTTP=ON \
-DBUILD_ICAL=ON \
-DBUILD_ICONV=ON \
-DBUILD_IRC=ON \
-DBUILD_JOURNAL=ON \
-DBUILD_LUA_CAIRO=ON \
-DBUILD_LUA_IMLIB2=ON \
-DBUILD_LUA_RSVG=ON \
-DBUILD_MYSQL=ON \
-DBUILD_PULSEAUDIO=ON \
-DBUILD_RSS=ON \
-DBUILD_WAYLAND=OFF \
-DBUILD_WLAN=ON \
-DBUILD_X11=OFF \
-DBUILD_XMMS2=ON \
../ \
; fi' \
&& cmake --build . \
&& cmake --install .
FROM ubuntu:noble
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -qy --no-install-recommends \
libaudclient2 \
libc++1 \
libc++abi1 \
libcairo2 \
libcurl4t64 \
libdbus-glib-1-2 \
libical3t64 \
libimlib2t64 \
libircclient1 \
libiw30t64 \
liblua5.3-0 \
libmicrohttpd12t64 \
libmysqlclient21 \
libncurses6 \
libpulse0 \
librsvg2-2 \
libsm6 \
libsystemd0 \
libxcb-xfixes0 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxft2 \
libxi6 \
libxinerama1 \
libxml2 \
libxmmsclient6 \
libxnvctrl0 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /opt/conky /opt/conky
ENV PATH="/opt/conky/bin:${PATH}"
ENV LD_LIBRARY_PATH="/opt/conky/lib:${LD_LIBRARY_PATH}"
ENTRYPOINT [ "/opt/conky/bin/conky" ]