From c3ae2d98dbef733e40c49ef87ab96b9d0c888706 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Tue, 9 Mar 2021 00:18:39 +0800 Subject: [PATCH] Refactor docs clirecording Dockerfile (#4484) * Delete apt-get lists after apt-get install in docs Dockerfile * Prevent pip install cache in docs Dockerfile * Prevent additional & unnecessary apt packages in docs Dockerfile --- docs/scripts/clirecording/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/scripts/clirecording/Dockerfile b/docs/scripts/clirecording/Dockerfile index b0deca769..470edf222 100644 --- a/docs/scripts/clirecording/Dockerfile +++ b/docs/scripts/clirecording/Dockerfile @@ -6,7 +6,7 @@ ENV LANGUAGE en_US.UTF-8 ENV TERM screen-256color # install mitmproxy, asciinema, and dependencies -RUN apt-get update && apt-get install -y \ +RUN apt-get update && apt-get install --no-install-recommends -y \ asciinema \ autoconf \ automake \ @@ -23,11 +23,13 @@ RUN apt-get update && apt-get install -y \ pkg-config \ python3-pip \ python3 \ + python3-setuptools \ wget \ xterm \ && locale-gen --purge "en_US.UTF-8" \ && update-locale "LANG=en_US.UTF-8" \ - && pip3 install libtmux curl requests mitmproxy + && pip3 install --no-cache-dir libtmux curl requests mitmproxy \ + && rm -rf /var/lib/apt/lists/* # install latest tmux (to support popups) RUN git clone --depth 1 https://github.com/tmux/tmux.git \