Skip to content
Snippets Groups Projects
docker_install_php.sh 338 B
#!/bin/bash

# We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && exit 0

set -xe

apt-get install -y libpq-dev libxml2-dev libxslt1-dev \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo_pgsql pgsql xsl zip \
&& pecl install xdebug \
&& docker-php-ext-enable xdebug