File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -388,6 +388,28 @@ RUN if [ ${INSTALL_MC} = true ]; then\
388388 chmod +x /usr/local/bin/mc \
389389;fi
390390
391+ #####################################
392+ # Symfony:
393+ #####################################
394+ USER root
395+ ARG INSTALL_SYMFONY=false
396+ ENV INSTALL_SYMFONY ${INSTALL_SYMFONY}
397+ RUN if [ ${INSTALL_SYMFONY} = true ]; then \
398+
399+ mkdir -p /usr/local/bin \
400+ && curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony \
401+ && chmod a+x /usr/local/bin/symfony \
402+
403+ # Symfony 3 alias
404+ && echo 'alias dev="php bin/console -e=dev"' >> ~/.bashrc \
405+ && echo 'alias prod="php bin/console -e=prod"' >> ~/.bashrc \
406+
407+ # Symfony 2 alias
408+ # && echo 'alias dev="php app/console -e=dev"' >> ~/.bashrc \
409+ # && echo 'alias prod="php app/console -e=prod"' >> ~/.bashrc \
410+
411+ ;fi
412+
391413USER laradock
392414
393415#
You can’t perform that action at this time.
0 commit comments