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
Dockerfile: mount DEB sources instead of copy to reduce image size
The DEB package is used temporarily and deleted after installation. The
intermediate layer still exists which bloats the final image by about
300MB without any real benefit.
Mount (bind) the context directory to /source and drop the COPY layers
to reduce the image size.
This feature requires BuildKit or an equivalent platform that supports
mounts. It is available since Docker v18.09 and default since v23.0
and should not be an issue in modern build environments.
0 commit comments