Is there a way to install ES plugins using ENV variables in docker?

Hi there,
I need to install s3-repository plugin in the ES running using docker.
I do not want to edit my elasticsearch.yml file.
Is there a way I want install plugins using ENV variables?

Please do not open multiple threads for the same issue.