(no title)
miquong | 2 years ago
It lets you add new layers, or edit any metadata (env vars, labels, entrypoint, etc) in existing images. You can also "flatten" an image with multiple layers into a single layer. Additionally you can "rebase" an image (re-apply your changes onto a new/updated base image). It does all this directly in the registry, so no docker needed (though it's still useful for creating the original image).
https://github.com/google/go-containerregistry/blob/main/cmd...
(updated: better link)
lyxell|2 years ago
pbowyer|2 years ago
apt-get|2 years ago
fishpen0|2 years ago
miquong|2 years ago
https://github.com/opencontainers/image-spec/issues/803
yrro|2 years ago
dayjaby|2 years ago
``` COPY ./package.deb /tmp/package.deb
RUN dpkg -i /tmp/*.deb && rm -rf /tmp/*.deb ```
This results in two layers, with one layer containing a huge file, thus being part of the final image if you don't do multi-stage builds.
momothereal|2 years ago
mcpherrinm|2 years ago
natebc|2 years ago