Installing additional packages in filebeat 9.X docker

ostree is not related to the tree command.

Probably, I do not use this image so I cannot confirm, but why you need tree inside the container?

You may need to build your own image for Filebeat if this is a requirement.