Skip to content

Modular logistics and supply chain operating system (LSOS)

hotfix php-geos install replace broken url with github mirror

Ronald A. Richardsond034c4ad0343
diff --git a/console/package.json b/console/package.json
index fe0c21aa..b4625cd7 100644
--- a/console/package.json
+++ b/console/package.json
@@ -1,6 +1,6 @@
{
"name": "@fleetbase/console",
- "version": "0.6.1",
+ "version": "0.6.2",
"private": true,
"description": "Modular logistics and supply chain operating system (LSOS)",
"repository": "https://github.com/fleetbase/fleetbase",
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 3417c61d..fdd2baa5 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,6 +1,6 @@
# syntax = docker/dockerfile:1.2
# Base stage
-FROM dunglas/frankenphp:1.2.3-php8.2-bookworm as base
+FROM dunglas/frankenphp:1.5.0-php8.2-bookworm as base
# Install packages
RUN apt-get update && apt-get install -y git bind9-utils mycli nodejs npm nano \
@@ -20,11 +20,35 @@ RUN install-php-extensions \
opcache \
memcached \
imagick \
- geos \
+ # geos \
sockets \
pcntl \
@composer
+# Install build dependencies for GEOS
+RUN apt-get update \
+ && apt-get install -y --no-install-recommends \
+ pkg-config \
+ libgeos-dev \
+ libgeos++-dev \
+ autoconf \
+ build-essential \
+ unzip \
+ && rm -rf /var/lib/apt/lists/*
+
+# Download, extract, compile, and enable the php-geos extension
+RUN curl -fsSL -o php-geos.zip \
+ https://github.com/libgeos/php-geos/archive/dfe1ab17b0f155cc315bc13c75689371676e02e1.zip \
+ && unzip php-geos.zip \
+ && rm php-geos.zip \
+ && cd php-geos-* \
+ && ./autogen.sh \
+ && ./configure \
+ && make -j"$(nproc)" install \
+ && docker-php-ext-enable geos \
+ && cd .. \
+ && rm -rf php-geos-*
+
# Update PHP configurations
RUN sed -e 's/^expose_php.*/expose_php = Off/' "$PHP_INI_DIR/php.ini-production" > "$PHP_INI_DIR/php.ini" \
&& sed -i -e 's/^upload_max_filesize.*/upload_max_filesize = 600M/' -e 's/^post_max_size.*/post_max_size = 0/' \