2018-05-12 23:26:31 +00:00
|
|
|
FROM ubuntu:latest
|
|
|
|
RUN apt-get update \
|
2018-12-09 16:20:58 +00:00
|
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
2018-12-15 17:52:17 +00:00
|
|
|
apt-get install -qy --no-install-recommends \
|
2018-12-15 17:56:56 +00:00
|
|
|
cmake \
|
|
|
|
git \
|
|
|
|
g++ \
|
|
|
|
libimlib2-dev \
|
|
|
|
libxext-dev \
|
|
|
|
libxft-dev \
|
|
|
|
libxdamage-dev \
|
|
|
|
libxinerama-dev \
|
|
|
|
libmysqlclient-dev \
|
|
|
|
libical-dev \
|
|
|
|
libircclient-dev \
|
|
|
|
libcairo2-dev \
|
|
|
|
libmicrohttpd-dev \
|
|
|
|
ncurses-dev \
|
|
|
|
liblua5.1-dev \
|
|
|
|
librsvg2-dev \
|
|
|
|
libaudclient-dev \
|
|
|
|
libxmmsclient-dev \
|
|
|
|
libpulse-dev \
|
|
|
|
libcurl4-gnutls-dev \
|
|
|
|
audacious-dev \
|
|
|
|
libsystemd-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxnvctrl-dev \
|
|
|
|
libiw-dev \
|
|
|
|
tolua++
|
2018-05-12 23:26:31 +00:00
|
|
|
|
|
|
|
COPY . /conky
|
|
|
|
WORKDIR /conky/build
|
2018-02-18 15:56:45 +00:00
|
|
|
ARG X11=yes
|
2018-05-12 23:26:31 +00:00
|
|
|
|
2018-05-13 17:33:18 +00:00
|
|
|
RUN sh -c 'if [ "$X11" = "yes" ] ; then \
|
2018-12-15 17:56:56 +00:00
|
|
|
cmake \
|
|
|
|
-DBUILD_MYSQL=ON \
|
|
|
|
-DBUILD_LUA_CAIRO=ON \
|
|
|
|
-DBUILD_LUA_IMLIB2=ON \
|
|
|
|
-DBUILD_LUA_RSVG=ON \
|
|
|
|
-DBUILD_LUA_CAIRO=ON \
|
|
|
|
-DBUILD_AUDACIOUS=ON \
|
|
|
|
-DBUILD_XMMS2=ON \
|
|
|
|
-DBUILD_ICAL=ON \
|
|
|
|
-DBUILD_IRC=ON \
|
|
|
|
-DBUILD_HTTP=ON \
|
|
|
|
-DBUILD_ICONV=ON \
|
|
|
|
-DBUILD_PULSEAUDIO=ON \
|
|
|
|
-DBUILD_JOURNAL=ON \
|
|
|
|
-DBUILD_RSS=ON \
|
|
|
|
-DBUILD_NVIDIA=ON \
|
|
|
|
-DBUILD_WLAN=ON \
|
|
|
|
../ \
|
2018-12-15 17:52:17 +00:00
|
|
|
; else \
|
2018-12-15 17:56:56 +00:00
|
|
|
cmake \
|
|
|
|
-DBUILD_X11=OFF \
|
|
|
|
-DBUILD_MYSQL=ON \
|
|
|
|
-DBUILD_LUA_CAIRO=ON \
|
|
|
|
-DBUILD_LUA_IMLIB2=ON \
|
|
|
|
-DBUILD_LUA_RSVG=ON \
|
|
|
|
-DBUILD_LUA_CAIRO=ON \
|
|
|
|
-DBUILD_AUDACIOUS=ON \
|
|
|
|
-DBUILD_XMMS2=ON \
|
|
|
|
-DBUILD_ICAL=ON \
|
|
|
|
-DBUILD_IRC=ON \
|
|
|
|
-DBUILD_HTTP=ON \
|
|
|
|
-DBUILD_ICONV=ON \
|
|
|
|
-DBUILD_PULSEAUDIO=ON \
|
|
|
|
-DBUILD_JOURNAL=ON \
|
|
|
|
-DBUILD_RSS=ON \
|
|
|
|
-DBUILD_WLAN=ON \
|
|
|
|
../ \
|
2018-12-15 17:52:17 +00:00
|
|
|
; fi' \
|
2018-05-12 23:26:31 +00:00
|
|
|
&& make -j5 all \
|
|
|
|
&& make -j5 install \
|
|
|
|
&& apt-get remove -y \
|
2018-12-15 17:56:56 +00:00
|
|
|
cmake \
|
|
|
|
git \
|
|
|
|
g++ \
|
|
|
|
libimlib2-dev \
|
|
|
|
libxext-dev \
|
|
|
|
libxft-dev \
|
|
|
|
libxdamage-dev \
|
|
|
|
libxinerama-dev \
|
|
|
|
libmysqlclient-dev \
|
|
|
|
libical-dev \
|
|
|
|
libircclient-dev \
|
|
|
|
libcairo2-dev \
|
|
|
|
libmicrohttpd-dev \
|
|
|
|
ncurses-dev \
|
|
|
|
liblua5.1-dev \
|
|
|
|
librsvg2-dev \
|
|
|
|
audacious-dev \
|
|
|
|
libaudclient-dev \
|
|
|
|
libxmmsclient-dev \
|
|
|
|
libpulse-dev \
|
|
|
|
libcurl4-gnutls-dev \
|
|
|
|
libsystemd-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxnvctrl-dev \
|
|
|
|
tolua++ \
|
2018-05-12 23:26:31 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
2018-08-07 13:38:36 +00:00
|
|
|
&& rm -rf /conky
|
2018-05-12 23:26:31 +00:00
|
|
|
|
2018-02-18 15:56:45 +00:00
|
|
|
CMD conky
|