File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ MAINTAINER ngineered <support@ngineered.co.uk>
5
5
ENV php_conf /usr/local/etc/php-fpm.conf
6
6
ENV fpm_conf /usr/local/etc/php-fpm.d/www.conf
7
7
ENV php_vars /usr/local/etc/php/conf.d/docker-vars.ini
8
- ENV composer_hash 55d6ead61b29c7bdee5cccfb50076874187bd9f21f65d8991d46ec5cc90518f447387fb9f76ebae1fbbacf329e583e30
9
8
10
9
ENV NGINX_VERSION 1.11.10
11
10
@@ -172,8 +171,9 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo
172
171
mkdir -p /var/www/app && \
173
172
mkdir -p /run/nginx && \
174
173
mkdir -p /var/log/supervisor && \
174
+ EXPECTED_COMPOSER_SIGNATURE=$(wget -q -O - https://composer.github.io/installer.sig) && \
175
175
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
176
- php -r "if (hash_file('SHA384', 'composer-setup.php') === '${composer_hash }') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
176
+ php -r "if (hash_file('SHA384', 'composer-setup.php') === '${EXPECTED_COMPOSER_SIGNATURE }') { echo 'Composer.phar Installer verified'; } else { echo 'Composer.phar Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
177
177
php composer-setup.php --install-dir=/usr/bin --filename=composer && \
178
178
php -r "unlink('composer-setup.php');" && \
179
179
pip install -U pip && \
You can’t perform that action at this time.
0 commit comments