with composer config becoming part of the signed release archive, we no longer need to download them separately

This commit is contained in:
El RIDO 2024-02-12 21:30:59 +01:00
parent 77369792b5
commit 5a4d7bab53
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -65,12 +65,10 @@ RUN \
&& cd /var/www \
&& tar -xzf /tmp/${RELEASE}.tar.gz --strip 1 \
&& if [ -n "${COMPOSER_PACKAGES}" ] ; then \
wget -q ${RAWURL}${RELEASE}/composer.json \
&& wget -q ${RAWURL}${RELEASE}/composer.lock \
&& composer remove --dev --no-update phpunit/phpunit \
composer remove --dev --no-update phpunit/phpunit \
&& composer require --no-update ${COMPOSER_PACKAGES} \
&& composer update --no-dev --optimize-autoloader \
rm composer.* /usr/local/bin/* ;\
rm /usr/local/bin/* ;\
fi \
&& rm *.md cfg/conf.sample.php \
&& mv bin cfg lib tpl vendor /srv \
@ -85,7 +83,7 @@ RUN \
&& chmod o+rwx /run /var/lib/nginx /var/lib/nginx/tmp \
# Clean up
&& gpgconf --kill gpg-agent \
&& rm -rf /tmp/* \
&& rm -rf /tmp/* composer.* \
&& apk del --no-cache composer gnupg git ${ALPINE_COMPOSER_PACKAGES}
COPY etc/ /etc/