diff --git a/7/alpine/Dockerfile b/7/alpine/Dockerfile index dbe1545..a6d25f4 100644 --- a/7/alpine/Dockerfile +++ b/7/alpine/Dockerfile @@ -8,5 +8,8 @@ ENV DRUSH_VERSION 7.3.0 # Install Drush using Composer. RUN composer global require drush/drush:"$DRUSH_VERSION" --prefer-dist +# Include bin path +ENV PATH="/tmp/vendor/bin:${PATH}" + # Display which version of Drush was installed RUN drush --version diff --git a/9/alpine/Dockerfile b/9/alpine/Dockerfile index b97e5fc..f409740 100644 --- a/9/alpine/Dockerfile +++ b/9/alpine/Dockerfile @@ -2,11 +2,10 @@ FROM drush/drush:base-alpine MAINTAINER Rob Loach -# Set the Drush version. -ENV DRUSH_VERSION 9.2.1 - -# Install Drush using Composer. -RUN composer global require drush/drush:"$DRUSH_VERSION" --prefer-dist +# Install Drush launcher +RUN wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar && \ + chmod +x drush.phar && \ + mv drush.phar /usr/local/bin/drush # Display which version of Drush was installed. -RUN drush --version +RUN drush --drush-launcher-version diff --git a/Makefile b/Makefile index f388eb7..711f096 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ version: docker run drush/drush:7 --version docker run drush/drush:backdrop --version docker run drush/drush:alpine --version - docker run drush/drush:9-alpine --version + docker run drush/drush:9-alpine --drush-launcher-version docker run drush/drush:8-alpine --version docker run drush/drush:7-alpine --version docker run drush/drush:backdrop-alpine --version diff --git a/base/alpine/Dockerfile b/base/alpine/Dockerfile index 42d12a7..b1c8f1f 100644 --- a/base/alpine/Dockerfile +++ b/base/alpine/Dockerfile @@ -1,5 +1,5 @@ # Drush Docker Container -FROM composer/composer:alpine +FROM composer MAINTAINER Moses Liao # Add common extensions