Skip to content

Commit 6627ea7

Browse files
committed
added git wget zip unzip and composer
1 parent 55e4495 commit 6627ea7

File tree

6 files changed

+68
-0
lines changed

6 files changed

+68
-0
lines changed

5.3/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,12 @@ RUN mkdir -p /tmp/xdebug && cd /tmp/xdebug \
1111
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
1212
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
1313

14+
RUN apt-get install wget -yqq && wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig \
15+
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
16+
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
17+
&& php composer-setup.php \
18+
&& php -r "unlink('composer-setup.php'); unlink('installer.sig');" \
19+
20+
1421
CMD ["apache2", "-DFOREGROUND"]
22+

5.4/Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,15 @@ RUN mkdir -p /tmp/xdebug && cd /tmp/xdebug \
99
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
1010
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
1111

12+
RUN apt-get update -yqq \
13+
&& apt-get install git -yqq \
14+
&& apt-get install wget -yqq \
15+
&& apt-get install zip -yqq \
16+
&& apt-get install unzip -yqq
17+
18+
RUN wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig \
19+
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
20+
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
21+
&& php composer-setup.php \
22+
&& php -r "unlink('composer-setup.php'); unlink('installer.sig');" \
23+
&& mv composer.phar /usr/local/bin/composer

5.5/Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,15 @@ RUN yes | pecl install xdebug \
55
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
66
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
77

8+
RUN apt-get update -yqq \
9+
&& apt-get install git -yqq \
10+
&& apt-get install wget -yqq \
11+
&& apt-get install zip -yqq \
12+
&& apt-get install unzip -yqq
13+
14+
RUN wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig \
15+
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
16+
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
17+
&& php composer-setup.php \
18+
&& php -r "unlink('composer-setup.php'); unlink('installer.sig');" \
19+
&& mv composer.phar /usr/local/bin/composer

5.6/Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,15 @@ RUN yes | pecl install xdebug \
55
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
66
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
77

8+
RUN apt-get update -yqq \
9+
&& apt-get install git -yqq \
10+
&& apt-get install wget -yqq \
11+
&& apt-get install zip -yqq \
12+
&& apt-get install unzip -yqq
13+
14+
RUN wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig \
15+
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
16+
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
17+
&& php composer-setup.php \
18+
&& php -r "unlink('composer-setup.php'); unlink('installer.sig');" \
19+
&& mv composer.phar /usr/local/bin/composer

7.0/Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,15 @@ RUN yes | pecl install xdebug \
55
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
66
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
77

8+
RUN apt-get update -yqq \
9+
&& apt-get install git -yqq \
10+
&& apt-get install wget -yqq \
11+
&& apt-get install zip -yqq \
12+
&& apt-get install unzip -yqq
13+
14+
RUN wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig \
15+
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
16+
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
17+
&& php composer-setup.php \
18+
&& php -r "unlink('composer-setup.php'); unlink('installer.sig');" \
19+
&& mv composer.phar /usr/local/bin/composer

7.1/Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,15 @@ RUN yes | pecl install xdebug \
55
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
66
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini
77

8+
RUN apt-get update -yqq \
9+
&& apt-get install git -yqq \
10+
&& apt-get install wget -yqq \
11+
&& apt-get install zip -yqq \
12+
&& apt-get install unzip -yqq
13+
14+
RUN wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig \
15+
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
16+
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
17+
&& php composer-setup.php \
18+
&& php -r "unlink('composer-setup.php'); unlink('installer.sig');" \
19+
&& mv composer.phar /usr/local/bin/composer

0 commit comments

Comments
 (0)