From 9f39673a0f106b5647309d6aa875ed16fb8773dc Mon Sep 17 00:00:00 2001 From: Unai Arrien Date: Thu, 26 Dec 2024 15:58:00 +0100 Subject: [PATCH] [PLT-1309] Refactor Dockerfile dependencies management --- .../providers/docker/stratio/Dockerfile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pkg/cluster/internal/providers/docker/stratio/Dockerfile b/pkg/cluster/internal/providers/docker/stratio/Dockerfile index 5673d7b414..a4b00837f7 100644 --- a/pkg/cluster/internal/providers/docker/stratio/Dockerfile +++ b/pkg/cluster/internal/providers/docker/stratio/Dockerfile @@ -30,16 +30,14 @@ ENV CAPG=v1.6.1 ENV CAPZ=v1.11.4 ENV CAPG_FORK_URL="https://github.com/Stratio/cluster-api-provider-gcp/releases/download/1.6.1-0.2.1/" -# Update the package list and install necessary packages (CVE-2023-38545) -RUN apt-get update && apt-get install -y \ - curl \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* - -# Install vim -RUN apt-get update && apt-get install -y \ - vim python3-pip git \ - && rm -rf /var/lib/apt/lists/* +# Install and update dependencies +RUN apt-get update \ + && apt-get install -y curl \ + git \ + python3-pip \ + vim \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* # Add aliases RUN echo 'alias k="kubectl"' >> ~/.bash_aliases \