diff --git a/README.md b/README.md index 4d1febf..c923922 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ If you have improvements or suggestions please open an issue or pull request on ### Versioning | Docker Tag | Git Release | Nginx Version | PHP Version | Alpine Version | |-----|-------|-----|--------|--------| -| latest/1.10.2 | Master Branch |1.18.0 | 7.4.9 | 3.12 | +| latest/1.10.3 | Master Branch |1.18.0 | 7.4.9 | 3.12 | _Note:_ The image is now aviable on x86_64 and Arm systems! diff --git a/docs/versioning.md b/docs/versioning.md index 9df9839..18de4fe 100644 --- a/docs/versioning.md +++ b/docs/versioning.md @@ -22,6 +22,7 @@ The latest tag will always follow the master branch in git. the other versions w | 1.10.0 | 7.4.8 |1.18.0 | 3.12 | 0.3.13 | PHP 7.4.8 + Nginx 1.18.0 + arm builds | | 1.10.1 | 7.4.9 |1.18.0 | 3.12 | 0.3.13 | bump to PHP 7.4.9 | | 1.10.2 | 7.4.9 |1.18.0 | 3.12 | 0.3.13 | Swap Docker file from ADD to COPY | +| 1.10.3 | 7.4.9 |1.18.0 | 3.12 | 0.3.14 | run composer as non root user | These tags will be created on GitLab and as tags in docker hub. diff --git a/scripts/start.sh b/scripts/start.sh index 13e3dab..f29ba6d 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -212,14 +212,15 @@ if [[ "$RUN_SCRIPTS" == "1" ]] ; then fi if [ -z "$SKIP_COMPOSER" ]; then + # Allow nginx user to call composer closes #169 # Try auto install for composer if [ -f "/var/www/html/composer.lock" ]; then if [ "$APPLICATION_ENV" == "development" ]; then - composer global require hirak/prestissimo - composer install --working-dir=/var/www/html + su - nginx -c 'composer global require hirak/prestissimo' + su - nginx -c 'composer install --working-dir=/var/www/html' else - composer global require hirak/prestissimo - composer install --no-dev --working-dir=/var/www/html + su - nginx -c 'composer global require hirak/prestissimo' + su - nginx -c 'composer install --no-dev --working-dir=/var/www/html' fi fi fi