Skip to content

Reduce docker image size #2458

@alteredego

Description

@alteredego

Hello team, thanks for such a great product!

I was taking a look at your datalust/seq docker images and note that it should be possible to roughly halve the size of the image as they contain a duplicated file layer.

https://hub.docker.com/layers/datalust/seq/latest/images/sha256-671cd1b032ff724911e4784054fc9c9c07b07d282465999e882b0a3511ae2867

Layer 12 and Layer 13 are virtually identical in size ~106 Mb and contain duplicate files.

Layer 13 is running chmod and chgrp commands which ends up adding full copies of some big files, whereas you could be pre-applying this in a different docker build stage and then just add them once to the final image.

Hope this helps!

Alex

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions