From 518378b5c63b26f16ed8f6afa68ed15e347e034c Mon Sep 17 00:00:00 2001 From: Martin Riedl Date: Sat, 29 Mar 2025 10:05:24 +0100 Subject: [PATCH] refactor: install ubuntu basis tools in separate layer --- images/ubuntu/24.04/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/images/ubuntu/24.04/Dockerfile b/images/ubuntu/24.04/Dockerfile index 8fb6c10..08eba0e 100644 --- a/images/ubuntu/24.04/Dockerfile +++ b/images/ubuntu/24.04/Dockerfile @@ -2,9 +2,13 @@ FROM ubuntu:24.04 RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/* +# install basis tools +RUN apt-get update && \ + apt-get install -y --no-install-recommends curl ca-certificates && \ + rm -rf /var/lib/apt/lists/* + # install nodejs -RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && \ - curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \ +RUN curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \ bash nodesource_setup.sh && \ apt-get install -y --no-install-recommends nodejs && \ rm -rf /var/lib/apt/lists/* && \