Fix install deployer fail

Install deployer from phar
This commit is contained in:
Yu-Lung Shao (Allen) 2018-02-22 17:20:28 +08:00 committed by GitHub
parent 74217478e0
commit 16f88029e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
#####################################