|
|
|
|
|
by gkfasdfasdf
224 days ago
|
|
> image-manip squash: This is the key to reclaiming disk space and the core of our strategy to squash the image layers. The tool creates a temporary container, applies all 272 layers in sequence to an empty root filesystem, and then exports the final, merged filesystem as a single new layer. This flattens the image's bloated history into a lean, optimized final state. Wouldn't a multistage Dockerfile have accomplished the same thing? smth like FROM bigimage RUN rm bigfile FROM scratch COPY --from=0 / / |
|