From 13a3a7900cae802d24ee6a438b79150743133454 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Fri, 16 May 2025 23:39:06 +0800 Subject: [PATCH] Clean up apt-get lists after every apt package installation --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9af29ed..7ee0c80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -92,6 +92,7 @@ RUN git -c advice.detachedHead=0 clone --branch ${PYENV_VERSION} --depth 1 https ENV PIPX_BIN_DIR=/root/.local/bin ENV PATH=$PIPX_BIN_DIR:$PATH RUN apt-get update && apt-get install -y pipx \ + && rm -rf /var/lib/apt/lists/* \ && pipx install poetry uv \ # Preinstall common packages for each version && for pyv in $(ls ${PYENV_ROOT}/versions/); do \ @@ -173,7 +174,8 @@ RUN mkdir /tmp/swiftly \ ### RUBY ### RUN apt-get update && apt-get install -y --no-install-recommends \ - ruby-full + ruby-full \ + && rm -rf /var/lib/apt/lists/* ### RUST ###