php8-image/docker-php-ext-install

11 lines
152 B
Bash

#!/bin/bash
set -euo pipefail
extensions=()
for ext in $@; do
[[ "$ext" =~ ^- ]] || extensions+=("php8-$ext")
done
zypper -n in ${extensions[*]}