Skip to content

Commit 0d9e194

Browse files
authored
Switch Composer Hash to file_get_contents()
1 parent f4275f8 commit 0d9e194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM php:7.3-cli
33
RUN apt-get update && apt-get -y install zip unzip
44

55
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
6-
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === 'e5325b19b381bfd88ce90a5ddb7823406b2a38cff6bb704b0acc289a09c8128d4a8ce2bbafcd1fcbdc38666422fe2806') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
6+
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === file_get_contents('https://composer.github.io/installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
77
RUN php composer-setup.php
88
RUN php -r "unlink('composer-setup.php');"
99

0 commit comments

Comments
 (0)