From 16f88029e02f0b9d38e27fc55cb5bbd7df9ef8ed Mon Sep 17 00:00:00 2001 From: "Yu-Lung Shao (Allen)" Date: Thu, 22 Feb 2018 17:20:28 +0800 Subject: [PATCH] Fix install deployer fail Install deployer from phar --- workspace/Dockerfile-72 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/workspace/Dockerfile-72 b/workspace/Dockerfile-72 index a123f40c..1099373e 100644 --- a/workspace/Dockerfile-72 +++ b/workspace/Dockerfile-72 @@ -457,14 +457,18 @@ USER laradock ##################################### # Deployer: ##################################### -USER laradock +USER root ARG INSTALL_DEPLOYER=false ENV INSTALL_DEPLOYER ${INSTALL_DEPLOYER} RUN if [ ${INSTALL_DEPLOYER} = true ]; then \ # Install the Deployer - composer global require "deployer/deployer" \ + # Using Phar as currently there is no support for laravel 4 from composer version + # Waiting to be resolved on https://github.com/deployphp/deployer/issues/1552 + curl -LO https://deployer.org/deployer.phar && \ + mv deployer.phar /usr/local/bin/dep && \ + chmod +x /usr/local/bin/dep \ ;fi #####################################