Remove `apt-get clean` in Dockerfile.{jetty,tomcat}

Also manually cleaned up `/var/lib/apt/lists` in original commits but
got conflict with #97, then removed.

Ref:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

> In addition, when you clean up the apt cache by removing
> /var/lib/apt/lists it reduces the image size, since the apt cache is not
> stored in a layer.

> Official Debian and Ubuntu images automatically run apt-get clean,
> so explicit invocation is not required.
This commit is contained in:
Peter Dave Hello 2019-03-18 15:40:25 +08:00 committed by arnaudroques
parent eae269348f
commit 04af2a25d2
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends graphviz fonts-noto-cjk && \
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/*
USER jetty

View File

@ -28,7 +28,7 @@ MAINTAINER D.Ducatel
RUN apt-get update && \
apt-get install -y --no-install-recommends fonts-noto-cjk libexpat1 libcairo2 libpango1.0 libpangoft2-1.0 libpangocairo-1.0 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/*
ENV GRAPHVIZ_DOT=/usr/bin/dot