mirror of
https://github.com/octoleo/plantuml-server.git
synced 2025-01-03 05:00:14 +00:00
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:
parent
eae269348f
commit
04af2a25d2
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user