From bdefb2d15b55fe3fc02efd6064c8779d913d9465 Mon Sep 17 00:00:00 2001 From: abin Date: Mon, 24 Apr 2023 23:09:55 +0530 Subject: [PATCH] fixup! Reduce size of the final GSC image Signed-off-by: abin --- templates/debian/Dockerfile.build.template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/debian/Dockerfile.build.template b/templates/debian/Dockerfile.build.template index 4ffb673f..ef24c612 100644 --- a/templates/debian/Dockerfile.build.template +++ b/templates/debian/Dockerfile.build.template @@ -22,12 +22,14 @@ RUN apt-get update \ # For compatibility with Gramine v1.3 or lower && /usr/bin/python3 -B -m pip install 'toml>=0.10' \ # Since all needed pip packages are installed, we can uninstall python3-pip safely - && apt remove -y python3-pip && apt autoremove -y \ + && apt remove -y python3-pip \ + && apt autoremove -y \ && rm -rf /var/lib/apt/lists/* {% if debug %} -RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y \ +RUN apt-get update \ + && env DEBIAN_FRONTEND=noninteractive apt-get install -y \ gdb \ less \ libunwind8 \