with composer config becoming part of the signed release archive, we no longer need to download them separately
This commit is contained in:
parent
77369792b5
commit
5a4d7bab53
1 changed files with 3 additions and 5 deletions
|
@ -65,12 +65,10 @@ RUN \
|
||||||
&& cd /var/www \
|
&& cd /var/www \
|
||||||
&& tar -xzf /tmp/${RELEASE}.tar.gz --strip 1 \
|
&& tar -xzf /tmp/${RELEASE}.tar.gz --strip 1 \
|
||||||
&& if [ -n "${COMPOSER_PACKAGES}" ] ; then \
|
&& if [ -n "${COMPOSER_PACKAGES}" ] ; then \
|
||||||
wget -q ${RAWURL}${RELEASE}/composer.json \
|
composer remove --dev --no-update phpunit/phpunit \
|
||||||
&& wget -q ${RAWURL}${RELEASE}/composer.lock \
|
|
||||||
&& composer remove --dev --no-update phpunit/phpunit \
|
|
||||||
&& composer require --no-update ${COMPOSER_PACKAGES} \
|
&& composer require --no-update ${COMPOSER_PACKAGES} \
|
||||||
&& composer update --no-dev --optimize-autoloader \
|
&& composer update --no-dev --optimize-autoloader \
|
||||||
rm composer.* /usr/local/bin/* ;\
|
rm /usr/local/bin/* ;\
|
||||||
fi \
|
fi \
|
||||||
&& rm *.md cfg/conf.sample.php \
|
&& rm *.md cfg/conf.sample.php \
|
||||||
&& mv bin cfg lib tpl vendor /srv \
|
&& mv bin cfg lib tpl vendor /srv \
|
||||||
|
@ -85,7 +83,7 @@ RUN \
|
||||||
&& chmod o+rwx /run /var/lib/nginx /var/lib/nginx/tmp \
|
&& chmod o+rwx /run /var/lib/nginx /var/lib/nginx/tmp \
|
||||||
# Clean up
|
# Clean up
|
||||||
&& gpgconf --kill gpg-agent \
|
&& gpgconf --kill gpg-agent \
|
||||||
&& rm -rf /tmp/* \
|
&& rm -rf /tmp/* composer.* \
|
||||||
&& apk del --no-cache composer gnupg git ${ALPINE_COMPOSER_PACKAGES}
|
&& apk del --no-cache composer gnupg git ${ALPINE_COMPOSER_PACKAGES}
|
||||||
|
|
||||||
COPY etc/ /etc/
|
COPY etc/ /etc/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue