From e48de3db0a28b8fc89934e46a28c3df5b5f26631 Mon Sep 17 00:00:00 2001 From: ffrancis Date: Thu, 27 Aug 2026 15:29:55 +0530 Subject: [PATCH] CI: Upgrade base image to Ubuntu 24.04 Upgrade the Docker base image from Ubuntu 22.04 to Ubuntu 24.04 to use the newer toolchain provided by the latest LTS release. Update the default Python alternative from Python 3.10 to Python 3.12 and add --break-system-packages to support pip package installation on Ubuntu 24.04. Add the bc package required by build workflows and keep the container dependencies aligned with the updated base image. Signed-off-by: ffrancis --- Dockerfile | 73 +++++++++++++++++++++++++++--------------------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/Dockerfile b/Dockerfile index c0a220f..178b053 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM public.ecr.aws/lts/ubuntu:22.04 +FROM public.ecr.aws/lts/ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive ARG USER @@ -22,46 +22,47 @@ RUN TZ="Etc/UTC" \ # Install required dependencies RUN apt-get update && apt install -y apt-transport-https apt-utils fuseext2 \ - build-essential \ - chrpath \ - curl \ - cpio \ - debianutils \ - diffstat \ - file \ - gawk \ - gcc \ - gcc-multilib \ - git \ - gpg-agent \ - iputils-ping \ - locales \ - liblz4-tool \ - libsdl1.2-dev \ - openssh-client \ - python3 \ - python3-git \ - python3-pip \ - python3-pexpect \ - python3-software-properties \ - socat \ - software-properties-common \ - tar \ - texinfo \ - tmux \ - unzip \ - vim \ - wget \ - xterm \ - xz-utils \ - zstd \ + bc \ + build-essential \ + chrpath \ + curl \ + cpio \ + debianutils \ + diffstat \ + file \ + gawk \ + gcc \ + gcc-multilib \ + git \ + gpg-agent \ + iputils-ping \ + locales \ + liblz4-tool \ + libsdl1.2-dev \ + openssh-client \ + python3 \ + python3-git \ + python3-pip \ + python3-pexpect \ + python3-software-properties \ + socat \ + software-properties-common \ + tar \ + texinfo \ + tmux \ + unzip \ + vim \ + wget \ + xterm \ + xz-utils \ + zstd \ && rm -rf -- /var/lib/apt/lists/* # Install Python packages -RUN pip install --no-cache-dir requests kas==4.7 +RUN pip install --no-cache-dir --break-system-packages requests kas==4.7 # Set python default -RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 +RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 # Ensure /bin/sh points to bash RUN ln -sf /bin/bash /bin/sh