Skip to content

Commit 2b5fdc0

Browse files
authored
Update Dockerfile-70
install symfony and add alias for symfony
1 parent 68ff573 commit 2b5fdc0

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

workspace/Dockerfile-70

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
391413
USER laradock
392414

393415
#

0 commit comments

Comments
 (0)