openfaas-template-php icon indicating copy to clipboard operation
openfaas-template-php copied to clipboard

Warning: "Do not run Composer as root/super user"

Open alexellis opened this issue 8 years ago • 2 comments

Hi when testing the template I saw an error from composer, I wondered if we can use a regular user for this step?

Do not run Composer as root/super user! See https://getcomposer.org/root for details

The other templates now use a multi-stage build and non-root user, perhaps you could look at adding a user called app too? See the node template for an example.

alexellis avatar Nov 06 '17 17:11 alexellis

@alexellis Yeah, I added a user app but for some reasons, I comment out the USER app before running composer. I'll try to find some time to test and update the template this week :)

itscaro avatar Nov 20 '17 11:11 itscaro

Am also experiencing the same ,am setting a Laravel project and some folders are missing according to https://laravel.com/docs/5.6/structure so i thought by running the composer will sort the issue any help very new to Laravel

stanelyg avatar Jul 18 '18 07:07 stanelyg