From c1ba82f20ae2c5146b999f451958ce8bfd8efa88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sommer?= Date: Wed, 28 Jun 2023 17:46:57 +0200 Subject: [PATCH] Dockerfile: use apt instead of apt-get and run clean The main tool to manage packages changed from apt-get to apt. To reduce the size of the container, cleanup apt's download cache. --- rt-tests/Dockerfile | 5 +++-- stress-tests/Dockerfile | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/rt-tests/Dockerfile b/rt-tests/Dockerfile index 96331f6..3a0ac17 100644 --- a/rt-tests/Dockerfile +++ b/rt-tests/Dockerfile @@ -3,8 +3,9 @@ ARG IMAGE_ARCH=linux/arm ARG IMAGE_TAG=2-bullseye FROM --platform=$IMAGE_ARCH torizon/debian:$IMAGE_TAG -RUN apt-get update \ - && apt-get install -y --no-install-recommends gnuplot rt-tests \ +RUN apt update \ + && apt install -y --no-install-recommends gnuplot rt-tests \ + && apt clean && rm -rf /var/lib/apt/lists/* COPY rt-tests.sh /rt-tests.sh diff --git a/stress-tests/Dockerfile b/stress-tests/Dockerfile index 0fe639e..cf7e717 100644 --- a/stress-tests/Dockerfile +++ b/stress-tests/Dockerfile @@ -3,8 +3,9 @@ ARG IMAGE_ARCH=linux/arm ARG IMAGE_TAG=2-bullseye FROM --platform=$IMAGE_ARCH torizon/debian:$IMAGE_TAG -RUN apt-get update \ - && apt-get install -y --no-install-recommends iperf3 rt-tests iputils-ping \ +RUN apt update \ + && apt install -y --no-install-recommends iperf3 rt-tests iputils-ping \ + && apt clean \ && rm -rf /var/lib/apt/lists/* COPY stress-tests.sh /stress-tests.sh