From 51ad2e13cae9a1e79f0fccd2fcf48aed0594d2a1 Mon Sep 17 00:00:00 2001 From: zhushaolong <794000949@qq.com> Date: Mon, 5 Dec 2022 01:37:29 +0800 Subject: [PATCH] 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 ``` --- workspace/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 24fa147c..5d91c812 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -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