1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-06-02 07:20:47 +00:00

Docker: updated base image to Ubuntu 24.04 LTS

This allows us to drop the CMake compliation step, which should speed up
image build times significantly.
This commit is contained in:
Brenden Matthews 2024-05-02 10:02:45 -04:00
parent 28a63989ab
commit a533bcb8e4

View File

@ -1,4 +1,4 @@
FROM ubuntu:jammy AS builder
FROM ubuntu:noble AS builder
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
@ -6,6 +6,7 @@ RUN apt-get update \
audacious-dev \
ca-certificates \
clang \
cmake \
curl \
gfortran \
git \
@ -39,25 +40,11 @@ RUN apt-get update \
libxml2-dev \
libxmmsclient-dev \
libxnvctrl-dev \
make \
ninja-build \
patch \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Compile CMake, we need the latest because the bug here (for armv7 builds):
# https://gitlab.kitware.com/cmake/cmake/-/issues/20568
WORKDIR /cmake
ENV CMAKE_VERSION 3.25.1
RUN curl -Lq https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz -o cmake-${CMAKE_VERSION}.tar.gz \
&& tar xf cmake-${CMAKE_VERSION}.tar.gz \
&& cd cmake-${CMAKE_VERSION} \
&& CC=clang CXX=clang++ CFLAGS="-D_FILE_OFFSET_BITS=64" CXXFLAGS="-D_FILE_OFFSET_BITS=64" ./bootstrap --system-libs --parallel=5 \
&& make -j5 \
&& make -j5 install \
&& cd \
&& rm -rf /cmake
COPY . /conky
WORKDIR /conky/build
@ -112,7 +99,7 @@ RUN sh -c 'if [ "$X11" = "yes" ] ; then \
&& cmake --build . \
&& cmake --install .
FROM ubuntu:jammy
FROM ubuntu:noble
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
@ -140,6 +127,7 @@ RUN apt-get update \
libxext6 \
libxfixes3 \
libxft2 \
libxi6 \
libxinerama1 \
libxml2 \
libxmmsclient6 \