Browse Source

Merge pull request #4279 from joanhey/composer

Composer faster autoload
Mike Smith 6 years ago
parent
commit
d4078c1c53
31 changed files with 33 additions and 32 deletions
  1. 3 2
      frameworks/PHP/README.md
  2. 1 1
      frameworks/PHP/amp/amp.dockerfile
  3. 1 1
      frameworks/PHP/cakephp/cakephp.dockerfile
  4. 1 1
      frameworks/PHP/clancats/clancats.dockerfile
  5. 1 1
      frameworks/PHP/codeigniter/codeigniter-hhvm.dockerfile
  6. 1 1
      frameworks/PHP/codeigniter/codeigniter.dockerfile
  7. 1 1
      frameworks/PHP/cygnite/cygnite.dockerfile
  8. 1 1
      frameworks/PHP/fuel/fuel.dockerfile
  9. 1 1
      frameworks/PHP/laravel/laravel-swoole.dockerfile
  10. 1 1
      frameworks/PHP/laravel/laravel.dockerfile
  11. 1 1
      frameworks/PHP/limonade/limonade.dockerfile
  12. 1 1
      frameworks/PHP/lithium/lithium.dockerfile
  13. 1 1
      frameworks/PHP/lumen/lumen-swoole.dockerfile
  14. 1 1
      frameworks/PHP/lumen/lumen.dockerfile
  15. 1 1
      frameworks/PHP/phalcon/phalcon-mongodb.dockerfile
  16. 1 1
      frameworks/PHP/phalcon/phalcon.dockerfile
  17. 1 1
      frameworks/PHP/php/php-php5.dockerfile
  18. 1 1
      frameworks/PHP/php/php.dockerfile
  19. 1 1
      frameworks/PHP/phpixie/phpixie.dockerfile
  20. 1 1
      frameworks/PHP/phreeze/phreeze.dockerfile
  21. 1 1
      frameworks/PHP/silex/silex-raw.dockerfile
  22. 1 1
      frameworks/PHP/silex/silex.dockerfile
  23. 1 1
      frameworks/PHP/slim/slim-hhvm.dockerfile
  24. 1 1
      frameworks/PHP/slim/slim-php5.dockerfile
  25. 1 1
      frameworks/PHP/slim/slim.dockerfile
  26. 1 1
      frameworks/PHP/symfony/symfony-raw.dockerfile
  27. 1 1
      frameworks/PHP/symfony/symfony.dockerfile
  28. 1 1
      frameworks/PHP/workerman/workerman.dockerfile
  29. 1 1
      frameworks/PHP/yii2/yii2-hhvm.dockerfile
  30. 1 1
      frameworks/PHP/yii2/yii2.dockerfile
  31. 1 1
      frameworks/PHP/zend/zend.dockerfile

+ 3 - 2
frameworks/PHP/README.md

@@ -1,5 +1,7 @@
 # PHP Frameworks
 # PHP Frameworks
 
 
+[![php logo](https://avatars1.githubusercontent.com/u/25158?s=200&v=4)](https://php.net)
+
 The information below contains information specific to PHP. 
 The information below contains information specific to PHP. 
 For further guidance, review the 
 For further guidance, review the 
 [documentation](https://frameworkbenchmarks.readthedocs.io/en/latest/).
 [documentation](https://frameworkbenchmarks.readthedocs.io/en/latest/).
@@ -8,8 +10,7 @@ For further guidance, review the
 
 
 ### PHP Versions
 ### PHP Versions
 
 
-[PHP 7.2.2](https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/toolset/setup/linux/languages/php/php7.sh),
-[PHP 5.6.33](https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/toolset/setup/linux/languages/php/php5.sh) and [HHVM 3.24](https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/toolset/setup/linux/languages/hhvm.sh).
+[PHP 7.3.\*, PHP 5.6.*](http://php.net/) and [HHVM 3.30](https://hhvm.com/).
 
 
 ## Adding New PHP-based Frameworks
 ## Adding New PHP-based Frameworks
 
 

+ 1 - 1
frameworks/PHP/amp/amp.dockerfile

@@ -18,6 +18,6 @@ WORKDIR /amp
 
 
 COPY deploy/conf/* /etc/php/7.2/cli/conf.d/
 COPY deploy/conf/* /etc/php/7.2/cli/conf.d/
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD php /amp/vendor/bin/cluster -s /amp/server.php
 CMD php /amp/vendor/bin/cluster -s /amp/server.php

+ 1 - 1
frameworks/PHP/cakephp/cakephp.dockerfile

@@ -22,7 +22,7 @@ RUN mkdir -p app/tmp/cache/persistent
 RUN mkdir -p app/tmp/logs
 RUN mkdir -p app/tmp/logs
 RUN chmod -R 777 app/tmp
 RUN chmod -R 777 app/tmp
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD service php7.3-fpm start && \
 CMD service php7.3-fpm start && \
     nginx -c /cakephp/deploy/nginx.conf -g "daemon off;"
     nginx -c /cakephp/deploy/nginx.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/clancats/clancats.dockerfile

@@ -17,7 +17,7 @@ WORKDIR /clancats
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN git clone --branch v2.0.6 --depth 1 https://github.com/ClanCats/Framework.git clancatsapp
 RUN git clone --branch v2.0.6 --depth 1 https://github.com/ClanCats/Framework.git clancatsapp
 RUN cp -r app/ clancatsapp/CCF/
 RUN cp -r app/ clancatsapp/CCF/

+ 1 - 1
frameworks/PHP/codeigniter/codeigniter-hhvm.dockerfile

@@ -14,7 +14,7 @@ RUN apt-get install -yqq composer > /dev/null
 ADD ./ /codeigniter
 ADD ./ /codeigniter
 WORKDIR /codeigniter
 WORKDIR /codeigniter
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD hhvm -m daemon --config /codeigniter/deploy/config.hdf && \
 CMD hhvm -m daemon --config /codeigniter/deploy/config.hdf && \
     nginx -c /codeigniter/deploy/nginx-hhvm.conf -g "daemon off;"
     nginx -c /codeigniter/deploy/nginx-hhvm.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/codeigniter/codeigniter.dockerfile

@@ -16,7 +16,7 @@ WORKDIR /codeigniter
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD service php7.3-fpm start && \
 CMD service php7.3-fpm start && \
     nginx -c /codeigniter/deploy/nginx-fpm.conf -g "daemon off;"
     nginx -c /codeigniter/deploy/nginx-fpm.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/cygnite/cygnite.dockerfile

@@ -17,7 +17,7 @@ WORKDIR /cygnite
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD service php5.6-fpm start && \
 CMD service php5.6-fpm start && \
     nginx -c /cygnite/deploy/nginx.conf -g "daemon off;"
     nginx -c /cygnite/deploy/nginx.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/fuel/fuel.dockerfile

@@ -17,7 +17,7 @@ WORKDIR /fuel
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD service php7.3-fpm start && \
 CMD service php7.3-fpm start && \
     nginx -c /fuel/deploy/nginx.conf -g "daemon off;"
     nginx -c /fuel/deploy/nginx.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/laravel/laravel-swoole.dockerfile

@@ -31,7 +31,7 @@ RUN deploy/swoole/install-composer.sh
 RUN apt-get update -yqq  > /dev/null
 RUN apt-get update -yqq  > /dev/null
 RUN apt-get install -yqq git unzip > /dev/null
 RUN apt-get install -yqq git unzip > /dev/null
 COPY deploy/swoole/composer* ./
 COPY deploy/swoole/composer* ./
-RUN php composer.phar install --no-dev --quiet
+RUN php composer.phar install -a --no-dev --quiet
 
 
 RUN php artisan config:cache
 RUN php artisan config:cache
 RUN php artisan route:cache
 RUN php artisan route:cache

+ 1 - 1
frameworks/PHP/laravel/laravel.dockerfile

@@ -24,7 +24,7 @@ RUN mkdir -p /laravel/storage/framework/cache
 
 
 RUN chmod -R 777 /laravel
 RUN chmod -R 777 /laravel
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN php artisan config:cache
 RUN php artisan config:cache
 RUN php artisan route:cache
 RUN php artisan route:cache

+ 1 - 1
frameworks/PHP/limonade/limonade.dockerfile

@@ -16,7 +16,7 @@ WORKDIR /limonade
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD service php7.3-fpm start && \
 CMD service php7.3-fpm start && \
     nginx -c /limonade/deploy/nginx.conf -g "daemon off;"
     nginx -c /limonade/deploy/nginx.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/lithium/lithium.dockerfile

@@ -17,7 +17,7 @@ WORKDIR /lithium
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN chmod -R 777 /lithium
 RUN chmod -R 777 /lithium
 
 

+ 1 - 1
frameworks/PHP/lumen/lumen-swoole.dockerfile

@@ -28,7 +28,7 @@ RUN deploy/swoole/install-composer.sh
 RUN apt-get update -yqq  > /dev/null
 RUN apt-get update -yqq  > /dev/null
 RUN apt-get install -yqq git unzip > /dev/null
 RUN apt-get install -yqq git unzip > /dev/null
 COPY deploy/swoole/composer* ./
 COPY deploy/swoole/composer* ./
-RUN php composer.phar install --no-dev --quiet
+RUN php composer.phar install -a --no-dev --quiet
 
 
 RUN echo "APP_SWOOLE=true" >> .env
 RUN echo "APP_SWOOLE=true" >> .env
 
 

+ 1 - 1
frameworks/PHP/lumen/lumen.dockerfile

@@ -17,7 +17,7 @@ WORKDIR /lumen
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN mkdir -p /lumen/storage
 RUN mkdir -p /lumen/storage
 RUN mkdir -p /lumen/storage/framework/sessions
 RUN mkdir -p /lumen/storage/framework/sessions

+ 1 - 1
frameworks/PHP/phalcon/phalcon-mongodb.dockerfile

@@ -18,7 +18,7 @@ RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children =
 
 
 RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN chmod -R 777 app
 RUN chmod -R 777 app
 
 

+ 1 - 1
frameworks/PHP/phalcon/phalcon.dockerfile

@@ -18,7 +18,7 @@ RUN apt-get install -yqq php7.2-phalcon  > /dev/null
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.2/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN chmod -R 777 app
 RUN chmod -R 777 app
 
 

+ 1 - 1
frameworks/PHP/php/php-php5.dockerfile

@@ -17,7 +17,7 @@ WORKDIR /php
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php
 
 

+ 1 - 1
frameworks/PHP/php/php.dockerfile

@@ -16,7 +16,7 @@ WORKDIR /php
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN chmod -R 777 /php
 RUN chmod -R 777 /php
 
 

+ 1 - 1
frameworks/PHP/phpixie/phpixie.dockerfile

@@ -16,7 +16,7 @@ WORKDIR /phpixie
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD service php7.3-fpm start && \
 CMD service php7.3-fpm start && \
     nginx -c /phpixie/deploy/nginx.conf -g "daemon off;"
     nginx -c /phpixie/deploy/nginx.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/phreeze/phreeze.dockerfile

@@ -17,7 +17,7 @@ WORKDIR /phreeze
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD service php5.6-fpm start && \
 CMD service php5.6-fpm start && \
     nginx -c /phreeze/deploy/nginx.conf -g "daemon off;"
     nginx -c /phreeze/deploy/nginx.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/silex/silex-raw.dockerfile

@@ -16,7 +16,7 @@ WORKDIR /silex
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN mv /silex/web/index_raw.php /silex/web/index.php
 RUN mv /silex/web/index_raw.php /silex/web/index.php
 
 

+ 1 - 1
frameworks/PHP/silex/silex.dockerfile

@@ -16,7 +16,7 @@ WORKDIR /silex
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD service php7.3-fpm start && \
 CMD service php7.3-fpm start && \
     nginx -c /silex/deploy/nginx.conf -g "daemon off;"
     nginx -c /silex/deploy/nginx.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/slim/slim-hhvm.dockerfile

@@ -14,7 +14,7 @@ RUN apt-get install -yqq composer > /dev/null
 ADD ./ /slim
 ADD ./ /slim
 WORKDIR /slim
 WORKDIR /slim
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN chmod -R 777 /slim
 RUN chmod -R 777 /slim
 
 

+ 1 - 1
frameworks/PHP/slim/slim-php5.dockerfile

@@ -17,7 +17,7 @@ WORKDIR /slim
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/5.6/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN chmod -R 777 /slim
 RUN chmod -R 777 /slim
 
 

+ 1 - 1
frameworks/PHP/slim/slim.dockerfile

@@ -16,7 +16,7 @@ WORKDIR /slim
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN chmod -R 777 /slim
 RUN chmod -R 777 /slim
 
 

+ 1 - 1
frameworks/PHP/symfony/symfony-raw.dockerfile

@@ -19,7 +19,7 @@ RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children =
 
 
 ENV APP_ENV prod
 ENV APP_ENV prod
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN php bin/console cache:clear --env=prod --no-debug --no-warmup
 RUN php bin/console cache:clear --env=prod --no-debug --no-warmup
 RUN php bin/console cache:warmup --env=prod --no-debug
 RUN php bin/console cache:warmup --env=prod --no-debug

+ 1 - 1
frameworks/PHP/symfony/symfony.dockerfile

@@ -19,7 +19,7 @@ RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children =
 
 
 ENV APP_ENV prod
 ENV APP_ENV prod
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 RUN php bin/console cache:clear --env=prod --no-debug --no-warmup
 RUN php bin/console cache:clear --env=prod --no-debug --no-warmup
 RUN php bin/console cache:warmup --env=prod --no-debug
 RUN php bin/console cache:warmup --env=prod --no-debug

+ 1 - 1
frameworks/PHP/workerman/workerman.dockerfile

@@ -14,6 +14,6 @@ COPY deploy/conf/* /etc/php/7.3/fpm/
 ADD ./ /workerman
 ADD ./ /workerman
 WORKDIR /workerman
 WORKDIR /workerman
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD php /workerman/server.php start
 CMD php /workerman/server.php start

+ 1 - 1
frameworks/PHP/yii2/yii2-hhvm.dockerfile

@@ -16,7 +16,7 @@ WORKDIR /yii2
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD hhvm -m daemon --config /yii2/deploy/config.hdf && \
 CMD hhvm -m daemon --config /yii2/deploy/config.hdf && \
     nginx -c /yii2/deploy/nginx-hhvm.conf -g "daemon off;"
     nginx -c /yii2/deploy/nginx-hhvm.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/yii2/yii2.dockerfile

@@ -16,7 +16,7 @@ WORKDIR /yii2
 
 
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/7.3/fpm/php-fpm.conf ; fi;
 
 
-RUN composer install --no-dev --quiet
+RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
 
 
 CMD service php7.3-fpm start && \
 CMD service php7.3-fpm start && \
     nginx -c /yii2/deploy/nginx-fpm.conf -g "daemon off;"
     nginx -c /yii2/deploy/nginx-fpm.conf -g "daemon off;"

+ 1 - 1
frameworks/PHP/zend/zend.dockerfile

@@ -20,7 +20,7 @@ RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children =
 RUN mkdir -p data/cache
 RUN mkdir -p data/cache
 RUN chmod 777 data/cache
 RUN chmod 777 data/cache
 
 
-RUN composer install --quiet --no-dev -o
+RUN composer install --optimize-autoloader --classmap-authoritative --quiet --no-dev
 
 
 CMD service php7.3-fpm start && \
 CMD service php7.3-fpm start && \
     nginx -c /zend/deploy/nginx.conf -g "daemon off;"
     nginx -c /zend/deploy/nginx.conf -g "daemon off;"