egress icon indicating copy to clipboard operation
egress copied to clipboard

Big increase of docker image size after 106abe6

Open maybepete opened this issue 2 years ago • 3 comments

When including commit https://github.com/livekit/egress/commit/106abe67387a43eb254acfe18c19481d95fd144c and doing a docker build the image size is increased by almost 800mb. Would it be possible to have a more lightweight option, or make this bundle of fonts optional?

maybepete avatar Nov 10 '22 17:11 maybepete

That commit was to ensure a wider range of text render properly when using RoomComposite. I didn't expect fonts alone would be that large.

That said, if you (or anyone else) would be interested in optimizing the size of the docker builds (including creating a lighter-version). We'd be open to a PR.

For the official builds, however, we'd need to prioritize rendering correctness over size of the image.

davidzhao avatar Nov 10 '22 22:11 davidzhao

Thanks for the answer. We'll have a look and see what and if we can accomplish in terms of a size optimized docker build.

Do you want this issue to be open meanwhile?

maybepete avatar Nov 11 '22 16:11 maybepete

Yup, let's leave it open for tracking purposes.

davidzhao avatar Nov 11 '22 20:11 davidzhao