Update Dockerfile for symphony

The symfony execution file could not be found when building the workspace.
```shell
#0 17.14 Symfony CLI installer
#0 17.14 
#0 17.14 Environment check
#0 17.14   [*] cURL is installed
#0 17.14   [*] Tar is installed
#0 17.14   [*] Git is installed
#0 17.15   [*] Your architecture (amd64) is supported
#0 17.15 
#0 17.15 Download
#0 17.19   Downloading https://github.com/symfony-cli/symfony-cli/releases/latest/download/symfony-cli_linux_amd64.tar.gz..
#0 17.30   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#0 17.30                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 5228k  100 5228k    0     0  1598k      0  0:00:03  0:00:03 --:--:-- 2849k
#0 20.59   Uncompress binary...
#0 20.98   Installing the binary into your home directory...
#0 21.01   The binary was saved to: /root/.symfony5/bin/symfony
#0 21.01 
#0 21.01 The Symfony CLI was installed successfully!
#0 21.01 
#0 21.01 Use it as a local file:
#0 21.01   /root/.symfony5/bin/symfony
#0 21.01 
#0 21.01 Or add the following line to your shell configuration file:
#0 21.01   export PATH="$HOME/.symfony5/bin:$PATH"
#0 21.01 
#0 21.01 Or install it globally on your system:
#0 21.01   mv /root/.symfony5/bin/symfony /usr/local/bin/symfony
#0 21.01 
#0 21.01 Then start a new shell and run 'symfony'
#0 21.04 mv: cannot stat '/root/.symfony/bin/symfony': No such file or directory
------
failed to solve: executor failed running [/bin/sh -c if [ ${INSTALL_SYMFONY} = true ]; then   mkdir -p /usr/local/bin   &&  1
```
This commit is contained in:
zhushaolong 2022-12-05 01:37:29 +08:00 committed by GitHub
parent 6f98745458
commit 51ad2e13ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1147,7 +1147,7 @@ RUN if [ ${INSTALL_SYMFONY} = true ]; then \
mkdir -p /usr/local/bin \
&& 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 \
&& mv /root/.symfony5/bin/symfony /usr/local/bin/symfony \
&& chmod a+x /usr/local/bin/symfony \
;fi