Skip to content

Commit 81adf0e

Browse files
committed
Merge pull request #25 from drupal-docker/fix/24
Fix #24: Composer - add missing PATH to ~/.bash_profile
2 parents e16f4bb + 719ea5f commit 81adf0e

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

5.4/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
99
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip \
1010
&& curl -sS https://getcomposer.org/installer | php \
1111
&& mv composer.phar /usr/local/bin/composer \
12-
&& rm -rf /var/lib/apt/lists/*
12+
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
13+
&& rm -rf /var/lib/apt/lists/*
1314

1415
COPY drupal.ini /usr/local/etc/php/conf.d/

5.5/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
1010
&& docker-php-ext-install opcache \
1111
&& curl -sS https://getcomposer.org/installer | php \
1212
&& mv composer.phar /usr/local/bin/composer \
13-
&& rm -rf /var/lib/apt/lists/*
13+
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
14+
&& rm -rf /var/lib/apt/lists/*
1415

1516
COPY opcache-recommended.ini drupal.ini /usr/local/etc/php/conf.d/

5.6/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
1010
&& docker-php-ext-install opcache \
1111
&& curl -sS https://getcomposer.org/installer | php \
1212
&& mv composer.phar /usr/local/bin/composer \
13-
&& rm -rf /var/lib/apt/lists/*
13+
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
14+
&& rm -rf /var/lib/apt/lists/*
1415

1516
COPY opcache-recommended.ini drupal.ini /usr/local/etc/php/conf.d/

7.0/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
1010
&& docker-php-ext-install opcache \
1111
&& curl -sS https://getcomposer.org/installer | php \
1212
&& mv composer.phar /usr/local/bin/composer \
13-
&& rm -rf /var/lib/apt/lists/*
13+
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
14+
&& rm -rf /var/lib/apt/lists/*
1415

1516
COPY opcache-recommended.ini drupal.ini /usr/local/etc/php/conf.d/

0 commit comments

Comments
 (0)