Skip to content

Commit 16f8802

Browse files
authored
Fix install deployer fail
Install deployer from phar
1 parent 7421747 commit 16f8802

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

workspace/Dockerfile-72

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,14 +457,18 @@ USER laradock
457457
#####################################
458458
# Deployer:
459459
#####################################
460-
USER laradock
460+
USER root
461461

462462
ARG INSTALL_DEPLOYER=false
463463
ENV INSTALL_DEPLOYER ${INSTALL_DEPLOYER}
464464

465465
RUN if [ ${INSTALL_DEPLOYER} = true ]; then \
466466
# Install the Deployer
467-
composer global require "deployer/deployer" \
467+
# Using Phar as currently there is no support for laravel 4 from composer version
468+
# Waiting to be resolved on https://github.com/deployphp/deployer/issues/1552
469+
curl -LO https://deployer.org/deployer.phar && \
470+
mv deployer.phar /usr/local/bin/dep && \
471+
chmod +x /usr/local/bin/dep \
468472
;fi
469473

470474
#####################################

0 commit comments

Comments
 (0)