Created
April 28, 2021 20:49
-
-
Save dwayneparton/8aefce55d8d2e95e01c30d1f7ad2358b to your computer and use it in GitHub Desktop.
How to install PHP GEOS on php/wordpress docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM wordpress:latest | |
RUN apt-get update | |
# Install Libgeos | |
RUN apt-get install -y libgeos-dev | |
# Install PHP GEOS | |
RUN curl -fsSL 'https://git.osgeo.org/gitea/geos/php-geos/archive/master.tar.gz' -o php-geos.tar.gz \ | |
&& mkdir -p /tmp/php-geos \ | |
&& tar -xf php-geos.tar.gz -C /tmp/php-geos --strip-components=1 \ | |
&& rm php-geos.tar.gz \ | |
&& docker-php-ext-configure /tmp/php-geos --enable-geos \ | |
&& docker-php-ext-install /tmp/php-geos \ | |
&& rm -r /tmp/php-geos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Damn you're right. It looks like libgeos.org links to this repo: https://git.osgeo.org/gitea/geos/php-geos