Skip to content

Commit cc786e6

Browse files
author
Nathan Heffley
committed
Download composer
1 parent 0bb3873 commit cc786e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@ LABEL "repository"="https://github.com/nathanheffley/laravel-phpunit-action"
99
LABEL "homepage"="https://github.com/nathanheffley/laravel-phpunit-action"
1010
LABEL "maintainer"="Nathan Heffley <[email protected]>"
1111

12+
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
13+
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
14+
RUN php composer-setup.php
15+
RUN php -r "unlink('composer-setup.php');"
16+
1217
ADD entrypoint.sh /entrypoint.sh
1318
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)