Skip to content

Commit fbd8579

Browse files
Changing Drush installation method to allow non-root usage
1 parent 2f5593a commit fbd8579

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ RUN php5enmod mcrypt
4343
RUN /usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php
4444
RUN /bin/mv composer.phar /usr/local/bin/composer
4545

46-
# Install Composer and Drush
46+
# Install Composer and Drush 6.7
47+
RUN /usr/bin/curl -sS https://getcomposer.org/installer | /usr/bin/php
48+
RUN /bin/mv composer.phar /usr/local/bin/composer
4749
RUN /usr/local/bin/composer self-update
48-
RUN /usr/local/bin/composer global require drush/drush:6.*
49-
RUN ln -s /root/.composer/vendor/drush/drush/drush /usr/local/bin/drush
50+
RUN mkdir --parents /opt/drush-6.7 && cd /opt/drush-6.7 && composer init --require=drush/drush:6.* -n && /usr/local/bin/composer config bin-dir /usr/local/bin && /usr/local/bin/composer install
5051

5152
# Prepare directory
5253
RUN mkdir /var/www

0 commit comments

Comments
 (0)