From f3fcb804262ed8532c7d2fd2e1de0cae676b69f0 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Wed, 21 Oct 2020 23:16:42 +0800 Subject: [PATCH] chore: remove unnecessary apt-get clean in Dockerfile (#5958) This image is built from the official Debian image as upstream, so there is no need to do apt-get clean manually. Ref: - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get > Official Debian and Ubuntu images automatically run apt-get clean, so > explicit invocation is not required. --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index df961ca51..fba1dcb0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ ARG PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1; RUN ln -sf /bin/bash /bin/sh -RUN apt-get update && apt-get install -yq libgconf-2-4 apt-transport-https git dumb-init python make g++ build-essential --no-install-recommends && apt-get clean \ +RUN apt-get update && apt-get install -yq libgconf-2-4 apt-transport-https git dumb-init python make g++ build-essential --no-install-recommends \ && rm -rf /var/lib/apt/lists/* WORKDIR /app @@ -29,7 +29,6 @@ RUN if [ "$PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" = 0 ]; then \ && apt-get update \ && apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont \ --no-install-recommends \ - && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && apt-get purge --auto-remove -y wget\ && rm -rf /src/*.deb \