images/actions/php/Dockerfile aktualisiert
Some checks failed
CI / build_act (push) Successful in 3m4s
CI / build_java (17) (push) Successful in 2m26s
CI / build_java (1_8_0) (push) Successful in 2m56s
CI / build_java (21) (push) Successful in 2m36s
CI / build_php (8.2) (push) Failing after 53s
CI / build_php (8.1) (push) Failing after 47s

This commit is contained in:
Snoweuph 2024-04-26 15:16:42 +00:00
parent b2388ea11c
commit b500a7f3de

View file

@ -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
@ -15,3 +14,9 @@ RUN \
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