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
This commit is contained in:
Peter Dave Hello 2021-03-09 00:18:39 +08:00 committed by GitHub
parent c40bc2fc2a
commit c3ae2d98db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \