fix(hirak/prestissimo package): normalize installation of the package

Avoid installation of hirak/prestissimo for the second version of the composer.
Change user to root, due to usage of this user as a common one.
This commit is contained in:
Pavel Savushkin 2021-03-20 02:10:09 +02:00
parent b9260fbff6
commit 21dcc046c9
No known key found for this signature in database
GPG Key ID: BD2EDA3E125300DD
1 changed files with 4 additions and 4 deletions

View File

@ -1026,13 +1026,13 @@ RUN if [ ${INSTALL_DEPLOYER} = true ]; then \
###########################################################################
# Prestissimo:
###########################################################################
USER laradock
ARG INSTALL_PRESTISSIMO=false
RUN if [ ${INSTALL_PRESTISSIMO} = true ]; then \
# Install Prestissimo
composer global require "hirak/prestissimo" \
if [ $(php -r "echo COMPOSER_VERSION;") = "1" ]; then \
# Install Prestissimo
composer global require "hirak/prestissimo" \
;fi
;fi
###########################################################################