From 9e6c325e6a19582daf3f530f1725a2e94fa1f712 Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Sat, 12 Aug 2023 16:38:58 +0100 Subject: [PATCH] Remove curl and unzip after they are used --- Containerfile | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Containerfile b/Containerfile index 9c7cf0e..47ccb4f 100644 --- a/Containerfile +++ b/Containerfile @@ -3,17 +3,21 @@ FROM ubuntu:22.04 RUN apt-get update && \ apt-get install --yes \ clang \ - curl \ libxml2 \ python3.10 \ - python3.10-venv \ - unzip - -RUN curl -L 'https://github.com/esp-rs/espup/releases/latest/download/espup-x86_64-unknown-linux-gnu' -o /usr/bin/espup && \ - chmod a+x /usr/bin/espup + python3.10-venv -RUN curl -L 'https://github.com/esp-rs/embuild/releases/download/ldproxy-v0.3.2/ldproxy-x86_64-unknown-linux-gnu.zip' -o ldproxy.zip && \ +RUN apt-get install --yes \ + curl \ + unzip && \ + curl -L 'https://github.com/esp-rs/espup/releases/latest/download/espup-x86_64-unknown-linux-gnu' -o /usr/bin/espup && \ + chmod a+x /usr/bin/espup && \ + curl -L 'https://github.com/esp-rs/embuild/releases/download/ldproxy-v0.3.2/ldproxy-x86_64-unknown-linux-gnu.zip' -o ldproxy.zip && \ unzip ldproxy.zip ldproxy && \ rm ldproxy.zip && \ chmod a+x ldproxy && \ - mv ldproxy /usr/bin/ldproxy + mv ldproxy /usr/bin/ldproxy && \ + apt-get remove --yes \ + curl \ + unzip && \ + apt-get autoremove --yes