From 2b5fdc00ee891b7d7cf3ae1357da56c4f60a898e Mon Sep 17 00:00:00 2001 From: James Whiteman Date: Fri, 7 Apr 2017 10:22:26 +1200 Subject: [PATCH] Update Dockerfile-70 install symfony and add alias for symfony --- workspace/Dockerfile-70 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/workspace/Dockerfile-70 b/workspace/Dockerfile-70 index 0e21a56..db6d5c7 100644 --- a/workspace/Dockerfile-70 +++ b/workspace/Dockerfile-70 @@ -388,6 +388,28 @@ RUN if [ ${INSTALL_MC} = true ]; then\ chmod +x /usr/local/bin/mc \ ;fi +##################################### +# Symfony: +##################################### +USER root +ARG INSTALL_SYMFONY=false +ENV INSTALL_SYMFONY ${INSTALL_SYMFONY} +RUN if [ ${INSTALL_SYMFONY} = true ]; then \ + + mkdir -p /usr/local/bin \ + && curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony \ + && chmod a+x /usr/local/bin/symfony \ + + # Symfony 3 alias + && echo 'alias dev="php bin/console -e=dev"' >> ~/.bashrc \ + && echo 'alias prod="php bin/console -e=prod"' >> ~/.bashrc \ + + # Symfony 2 alias + # && echo 'alias dev="php app/console -e=dev"' >> ~/.bashrc \ + # && echo 'alias prod="php app/console -e=prod"' >> ~/.bashrc \ + +;fi + USER laradock #