Kaynağa Gözat

Composer faster autoload

Joanhey 6 yıl önce
ebeveyn
işleme
791760dff5

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

@@ -18,6 +18,6 @@ WORKDIR /amp
 
 COPY deploy/conf/* /etc/php/7.2/cli/conf.d/
 
-RUN composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 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 chmod -R 777 app/tmp
 
-RUN composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD service php7.3-fpm start && \
     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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 RUN git clone --branch v2.0.6 --depth 1 https://github.com/ClanCats/Framework.git clancatsapp
 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
 WORKDIR /codeigniter
 
-RUN composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD hhvm -m daemon --config /codeigniter/deploy/config.hdf && \
     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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD service php7.3-fpm start && \
     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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD service php5.6-fpm start && \
     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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD service php7.3-fpm start && \
     nginx -c /fuel/deploy/nginx.conf -g "daemon off;"

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

@@ -24,7 +24,7 @@ RUN mkdir -p /laravel/storage/framework/cache
 
 RUN chmod -R 777 /laravel
 
-RUN composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 RUN php artisan config: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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD service php7.3-fpm start && \
     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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 RUN chmod -R 777 /lithium
 

+ 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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 RUN mkdir -p /lumen/storage
 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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD service php7.3-fpm start && \
     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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD service php5.6-fpm start && \
     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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD service php7.3-fpm start && \
     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
 WORKDIR /slim
 
-RUN composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 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
 
-RUN composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 RUN php bin/console cache:clear --env=prod --no-debug --no-warmup
 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
 
-RUN composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 RUN php bin/console cache:clear --env=prod --no-debug --no-warmup
 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
 WORKDIR /workerman
 
-RUN composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD hhvm -m daemon --config /yii2/deploy/config.hdf && \
     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 composer install --no-dev --quiet
+RUN composer install -a --no-dev --quiet
 
 CMD service php7.3-fpm start && \
     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 chmod 777 data/cache
 
-RUN composer install --quiet --no-dev -o
+RUN composer install -a --quiet --no-dev
 
 CMD service php7.3-fpm start && \
     nginx -c /zend/deploy/nginx.conf -g "daemon off;"