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
The rm /tmp/apiman-distro-vertx.zip is inefficient because ADD and RUN command generate two distinct image layers and a layer cannot modify another layer
To delete the zip file, you have to download, unzip and delete on the same layer
This is something I did deliberately and have decided to keep.
The separate ADD step allows me to substitute the default remote file with a file copied from the Docker build directory (i.e. local file to build system). This is very useful when doing development, testing, and performing manual releases, working with snapshots, etc.
Unfortunately, this technique does not work with the curl approach, as curl can't transparently access the local filesystem in the same way the ADD command can (which has special capabilities).
Hi,
When you write
The
rm /tmp/apiman-distro-vertx.zip
is inefficient because ADD and RUN command generate two distinct image layers and a layer cannot modify another layerTo delete the zip file, you have to download, unzip and delete on the same layer
For example (with use of wget)
You can use this usefull tool dive to inspect the image efficiency
Regards
The text was updated successfully, but these errors were encountered: