Root user inside Composer container

Viewed 6445

I have a basic question when running running a Composer in a Docker container.

Is it OK to run the composer as user root inside the container? I am confusing that the owner of the created files (for example when using composer require) is root.

Is run as root inside the container OK best practice?

2 Answers
Related