3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Build and install the GEOS PHP extension.

This commit is contained in:
Michael Stenta 2016-10-21 20:31:25 -04:00
parent 4ecade70b3
commit 257e5eb1f8

View file

@ -27,10 +27,26 @@ RUN pecl install uploadprogress \
# Install other dependencies via apt-get.
RUN apt-get update && apt-get install -y \
bzip2 \
git \
libgeos-dev \
php5-geos \
phpunit \
unzip
# Build and install the GEOS PHP extension.
RUN curl -fsSL 'http://download.osgeo.org/geos/geos-3.4.2.tar.bz2' -o geos.tar.bz2 \
&& mkdir -p geos \
&& tar -xf geos.tar.bz2 -C geos --strip-components=1 \
&& rm geos.tar.bz2 \
&& ( \
cd geos \
&& ./configure --enable-php \
&& make \
&& make install \
) \
&& rm -r geos \
&& docker-php-ext-enable geos
# Install Drush.
RUN curl -fSL "http://files.drush.org/drush.phar" -o /usr/local/bin/drush \
&& chmod +x /usr/local/bin/drush