File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ services:
2929 - INSTALL_DEPLOYER=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
3030 - INSTALL_LINUXBREW=${WORKSPACE_INSTALL_LARAVEL_ENVOY}
3131 - INSTALL_MC=${WORKSPACE_INSTALL_MC}
32+ - INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY}
3233 - PUID=${WORKSPACE_PUID}
3334 - PGID=${WORKSPACE_PGID}
3435 - NODE_VERSION=${WORKSPACE_NODE_VERSION}
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ WORKSPACE_INSTALL_LARAVEL_ENVOY=false
2626WORKSPACE_INSTALL_DEPLOYER=false
2727WORKSPACE_INSTALL_LINUXBREW=false
2828WORKSPACE_INSTALL_MC=false
29+ WORKSPACE_INSTALL_SYMFONY=false
2930WORKSPACE_PUID=1000
3031WORKSPACE_PGID=1000
3132WORKSPACE_NODE_VERSION=stable
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