php/docker/pecl_install

16 lines
336 B
Bash
Executable File

#!/bin/sh
# This will install our PHP modules
# call peck-install module1 module2
# First install some dependancies
apk add --no-cache autoconf gcc libc-dev make
# Install the modules
for module in $@; do
pecl install -o -f ${module} && docker-php-ext-enable ${module}
done
# Clean up
apk del --no-cache autoconf gcc libc-dev make