datastrato / gravitino

World's most powerful data catalog service with providing a high-performance, geo-distributed and federated metadata lake.
https://datastrato.ai/docs/
Apache License 2.0
347 stars 150 forks source link

[Subtask] [Improvement] Use multi-staged build to shrink Doris image size #3241

Open unknowntpo opened 2 weeks ago

unknowntpo commented 2 weeks ago

Describe the subtask

shrink Doris docker image size.

Parent issue

Subtask of #2925

unknowntpo commented 2 weeks ago

Total size of Doris Image is 2.17 GB This layer

ADD packages/doris-amd64.tar.xz /opt/ # buildkit

takes 1.87G, and this file actually has 1.55 GB.

https://hub.docker.com/layers/datastrato/gravitino-ci-doris/0.1.3/images/sha256-a0d7c01a9d59f5d59ab7ba313790f021578ddb0481d3599d187ddf119aad069e?context=explore