configure 587 Bytes
#!/bin/sh

set -e
apt-get update
apt-get install -y sudo ssmtp php7.0-fpm php7.0-mysql php7.0-curl php7.0-imagick php7.0-ldap php7.0-xml php7.0-mbstring php7.0-mcrypt php7.0-gd php7.0-apc $PHPFPM_EXTRA_PACKAGES

rm /etc/php/7.0/fpm/pool.d/www.conf
cp -a /tmp/files/app-defaults.conf /etc/php/7.0/fpm

cp /tmp/files/entrypoint /sbin/entrypoint

addgroup hostgroup
adduser --gecos 'Host User' --ingroup hostgroup --disabled-password hostuser
su - hostuser -c 'git config --global user.email hostuser@php-fpm'
su - hostuser -c 'git config --global user.name "Host User"'

rm -rf /tmp/files