3 ENV APACHE_DOCUMENT_ROOT /app/public
7 # Install additional dependencies
17 rm -rf /var/lib/apt/lists/*
20 docker-php-ext-configure ldap --with-libdir="lib/$(gcc -dumpmachine)"
21 docker-php-ext-install pdo_mysql gd ldap zip
23 docker-php-ext-enable xdebug
25 sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf
26 sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
29 curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
31 # Use the default production configuration and update it as required
32 mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
33 sed -i 's/memory_limit = 128M/memory_limit = 512M/g' "$PHP_INI_DIR/php.ini"