From e31e964fc64eed7ebafa2e419996c06e1db63d0f Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Fri, 26 Apr 2024 22:18:06 +0000 Subject: [PATCH] images/actions/php/Dockerfile aktualisiert --- images/actions/php/Dockerfile | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/images/actions/php/Dockerfile b/images/actions/php/Dockerfile index c554805..267a185 100644 --- a/images/actions/php/Dockerfile +++ b/images/actions/php/Dockerfile @@ -3,20 +3,5 @@ FROM git.euph.dev/actions/runner-basic:latest 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 --gpg-auto-import-keys refresh -RUN sudo zypper -n update - -RUN \ - major_version=$(echo ${PACKAGE_VERSION} | cut -d. -f1) && \ - minor_version=$(echo ${PACKAGE_VERSION} | cut -d. -f2) && \ - sudo zypper -n addlock "php${major_version} < ${major_version}.${minor_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}" - -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 +RUN apk add --no-cache \ +php${PACKAGE_VERSION} composer \ No newline at end of file