installed laravel/sail (laravel docker development implementation)

updated composer
This commit is contained in:
Fabricio
2022-06-28 19:37:10 +02:00
parent b6c603a97b
commit f07fd0d6a4
7 changed files with 334 additions and 131 deletions

17
start-container Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
if [ ! -z "$WWWUSER" ]; then
usermod -u $WWWUSER sail
fi
if [ ! -d /.composer ]; then
mkdir /.composer
fi
chmod -R ugo+rw /.composer
if [ $# -gt 0 ]; then
exec gosu $WWWUSER "$@"
else
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
fi