You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apt-get update and apt-get install exist two times.
Reorder the apt-get commands to void duplications and reduce build time.
Why is chromium installed?
It's later uninstalled and obviously no dependency.
Don't clone source files in a Dockerfile.
Sources are cloned outside of the Docker build process and handed over into the Docker build process via RUN --mount=type=bind,target=/context:
Only copy necessary files into the Docker image. For sure, the Git repository contains unnecessary files.
Specify a .dockerignore file to reduce the visible files in a Docker build context.
At best specify a list of packages to install in an external file, instead of listing individual dependencies in the Dockerfile.
The Dockerfile for export-server (image-export/Dockerfile) is not good:
Review:
maintaineris outdated.Use
org.opencontainers.image.***labels.apt-get updateandapt-get installexist two times.Reorder the
apt-getcommands to void duplications and reduce build time.chromiuminstalled?It's later uninstalled and obviously no dependency.
Sources are cloned outside of the Docker build process and handed over into the Docker build process via
RUN --mount=type=bind,target=/context:RUN --mount=type=bind,target=/context \ mkdir -p /tools \ && cp /context/ToolBox.sh /tools/Specify a
.dockerignorefile to reduce the visible files in a Docker build context.chromiumandgit, the apt caches are not cleaned !Run
rm -rf /var/lib/apt/lists/*andapt-get clean.