1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00
conky/Dockerfile

116 lines
2.2 KiB
Docker
Raw Normal View History

FROM ubuntu:focal AS builder
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 \
2019-02-21 13:59:29 +00:00
cmake \
git \
build-essential \
2019-02-21 13:59:29 +00:00
audacious-dev \
libaudclient-dev \
libcairo2-dev \
libcurl4-openssl-dev \
libical-dev \
libimlib2-dev \
libircclient-dev \
libiw-dev \
liblua5.3-dev \
libmicrohttpd-dev \
libmysqlclient-dev \
libpulse-dev \
librsvg2-dev \
libsystemd-dev \
libxdamage-dev \
libxext-dev \
libxft-dev \
libxinerama-dev \
libxml2-dev \
libxmmsclient-dev \
libxnvctrl-dev \
ncurses-dev
COPY . /conky
WORKDIR /conky/build
2018-02-18 15:56:45 +00:00
ARG X11=yes
RUN sh -c 'if [ "$X11" = "yes" ] ; then \
2019-02-21 13:59:29 +00:00
cmake \
-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=ON \
-DBUILD_LUA_IMLIB2=ON \
-DBUILD_LUA_RSVG=ON \
-DBUILD_MYSQL=ON \
-DBUILD_NVIDIA=ON \
-DBUILD_PULSEAUDIO=ON \
-DBUILD_RSS=ON \
-DBUILD_WLAN=ON \
-DBUILD_XMMS2=ON \
../ \
2018-12-15 17:52:17 +00:00
; else \
2019-02-21 13:59:29 +00:00
cmake \
-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=ON \
-DBUILD_LUA_IMLIB2=ON \
-DBUILD_LUA_RSVG=ON \
-DBUILD_MYSQL=ON \
-DBUILD_PULSEAUDIO=ON \
-DBUILD_RSS=ON \
-DBUILD_WLAN=ON \
-DBUILD_X11=OFF \
-DBUILD_XMMS2=ON \
../ \
2018-12-15 17:52:17 +00:00
; fi' \
&& make -j5 all \
2019-02-21 13:59:29 +00:00
&& make -j5 install
FROM ubuntu:bionic
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -qy --no-install-recommends \
libaudclient2 \
libcairo2 \
libcurl4 \
libical3 \
libimlib2 \
libircclient1 \
libiw30 \
liblua5.3-0 \
libmicrohttpd12 \
libmysqlclient20 \
libncurses5 \
libpulse0 \
librsvg2-2 \
libsystemd0 \
libxcb-xfixes0 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxft2 \
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}"
2019-02-21 13:59:29 +00:00
ENTRYPOINT [ "/opt/conky/bin/conky" ]