Ok so this question as been asked already and I can see the answer however I'm very new to pipelines and don't have that much info about docker. So here is my yml pipelines configuration file.
image: php:7.2-fpm
pipelines:
default:
- step:
caches: - composer
script: - apt-get update && apt-get install -y unzip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- ./vendor/bin/phpunit
So the answer simply recommends don't run composer as a root or super user so knowing that how do I using my yml configuration to tell docker not to install composer as a root or super user thank you in advance