Merge pull request #2683 from oussaka/symfony_installer

new Symfony Installer to create a new Symfony application
This commit is contained in:
Shao Yu-Lung (Allen) 2021-03-20 13:19:05 +08:00 committed by GitHub
commit 8c46f296d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1144,14 +1144,10 @@ ARG INSTALL_SYMFONY=false
RUN if [ ${INSTALL_SYMFONY} = true ]; then \
mkdir -p /usr/local/bin \
&& curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony \
&& apt-get -y install sudo wget \
&& wget --quiet https://get.symfony.com/cli/installer -O - | bash \
&& mv /root/.symfony/bin/symfony /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
###########################################################################