From b500a7f3de5e310ac7f648082fe92f77310d6be5 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Fri, 26 Apr 2024 15:16:42 +0000 Subject: [PATCH] images/actions/php/Dockerfile aktualisiert --- images/actions/php/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/images/actions/php/Dockerfile b/images/actions/php/Dockerfile index bbdeab4..4f21eed 100644 --- a/images/actions/php/Dockerfile +++ b/images/actions/php/Dockerfile @@ -4,7 +4,6 @@ ARG PACKAGE_VERSION ENV PACKAGE_VERSION=${PACKAGE_VERSION} RUN sudo zypper -n addrepo https://download.opensuse.org/repositories/devel:languages:php/openSUSE_Leap_$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"')/devel:languages:php.repo -RUN sudo zypper -n addrepo https://download.opensuse.org/repositories/server:php:applications/$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"')/server:php:applications.repo RUN sudo zypper -n --gpg-auto-import-keys refresh RUN sudo zypper -n update @@ -14,4 +13,10 @@ RUN \ sudo zypper -n addlock "php${major_version} < ${PACKAGE_VERSION}"; \ version_upper_bound="${major_version}.$((minor_version + 1))" && \ sudo zypper -n addlock "php${major_version} >= ${version_upper_bound}" && \ - sudo zypper -n install "php${major_version}" \ No newline at end of file + sudo zypper -n install "php${major_version}" + +RUN \ + php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ + php composer-setup.php && \ + php -r "unlink('composer-setup.php') + sudo mv composer.phar /usr/local/bin/composer \ No newline at end of file