Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit a234b6a

Browse files
committed
Update alternatives
1 parent b3df1c3 commit a234b6a

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

php7.0/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get update \
1919
php7.0-pgsql php7.0-imap php-memcached php7.0-mbstring php7.0-xml php7.0-curl php7.0-redis php7.0-soap php7.0-mailparse \
2020
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
2121
&& mkdir /run/php \
22+
&& update-alternatives --install /usr/bin/php php /usr/bin/php7.0 100 \
2223
&& apt-get remove -y --purge software-properties-common \
2324
&& apt-get clean \
2425
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

php7.1/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get update \
1919
php7.1-pgsql php7.1-imap php-memcached php7.1-mbstring php7.1-xml php7.1-curl php7.1-redis php7.1-soap php7.1-mailparse \
2020
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
2121
&& mkdir /run/php \
22+
&& update-alternatives --install /usr/bin/php php /usr/bin/php7.1 100 \
2223
&& apt-get remove -y --purge software-properties-common \
2324
&& apt-get clean \
2425
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

php7.2/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get update \
1919
php7.2-pgsql php7.2-imap php-memcached php7.2-mbstring php7.2-xml php7.2-curl php7.2-redis php7.2-soap php7.2-mailparse \
2020
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
2121
&& mkdir /run/php \
22+
&& update-alternatives --install /usr/bin/php php /usr/bin/php7.2 100 \
2223
&& apt-get remove -y --purge software-properties-common \
2324
&& apt-get clean \
2425
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

php7.3/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get update \
1919
php7.3-pgsql php7.3-imap php-memcached php7.3-mbstring php7.3-xml php7.3-curl php7.3-redis php7.3-soap php7.3-mailparse \
2020
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
2121
&& mkdir /run/php \
22+
&& update-alternatives --install /usr/bin/php php /usr/bin/php7.3 100 \
2223
&& apt-get remove -y --purge software-properties-common \
2324
&& apt-get clean \
2425
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

php7.4/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get update \
1919
php7.4-pgsql php7.4-imap php-memcached php7.4-mbstring php7.4-xml php7.4-curl php7.4-redis php7.4-soap php7.4-mailparse \
2020
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
2121
&& mkdir /run/php \
22+
&& update-alternatives --install /usr/bin/php php /usr/bin/php7.4 100 \
2223
&& apt-get remove -y --purge software-properties-common \
2324
&& apt-get clean \
2425
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

php8.0/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get update \
1919
php8.0-pgsql php8.0-imap php-memcached php8.0-mbstring php8.0-xml php8.0-curl php8.0-redis php8.0-soap php8.0-mailparse \
2020
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
2121
&& mkdir /run/php \
22+
&& update-alternatives --install /usr/bin/php php /usr/bin/php8.0 100 \
2223
&& apt-get remove -y --purge software-properties-common \
2324
&& apt-get clean \
2425
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

php8.1/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN apt-get update \
1919
php8.1-pgsql php8.1-imap php-memcached php8.1-mbstring php8.1-xml php8.1-curl php8.1-redis php8.1-soap php8.1-mailparse \
2020
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
2121
&& mkdir /run/php \
22+
&& update-alternatives --install /usr/bin/php php /usr/bin/php8.1 100 \
2223
&& apt-get remove -y --purge software-properties-common \
2324
&& apt-get clean \
2425
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

0 commit comments

Comments
 (0)