Browse Source

replaced composer drush by drush-launcher 0.6.0, added druapl-console launcher

Bachir Soussi Chiadmi 6 years ago
parent
commit
2cc8e727d8
1 changed files with 11 additions and 6 deletions
  1. 11 6
      Docker/php/Dockerfile

+ 11 - 6
Docker/php/Dockerfile

@@ -17,9 +17,14 @@ RUN apt-get update && apt-get install -y \
 		apt-get install -y git vim && \
 		pecl install redis-3.1.0 && \
     pecl install xdebug-2.5.0 && \
-    docker-php-ext-enable redis xdebug && \
-		export COMPOSER_HOME=/usr/local/composer && \
-	    curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
-	    composer global require drush/drush:8 && \
-	    composer global install && \
-	    ln -s /usr/local/composer/vendor/drush/drush/drush /usr/local/bin/drush
+    docker-php-ext-enable redis xdebug
+
+RUN export COMPOSER_HOME=/usr/local/composer && \
+	    curl -sS https://getcomposer.org/installer \
+				| php -- --install-dir=/usr/local/bin --filename=composer && \
+			curl https://drupalconsole.com/installer \
+				-L -o /usr/local/bin/drupal && \
+			chmod +x /usr/local/bin/drupal && \
+			curl https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar \
+				-L -o /usr/local/bin/drush && \
+			chmod +x /usr/local/bin/drush