fix: Tippecanoe compilé depuis source (multi-stage build, absent de bookworm)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,23 @@
|
|||||||
|
# ── Stage 1 : compilation Tippecanoe (non disponible dans bookworm) ────────
|
||||||
|
FROM debian:bookworm-slim AS tippecanoe-builder
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
build-essential \
|
||||||
|
libsqlite3-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
git \
|
||||||
|
ca-certificates \
|
||||||
|
&& git clone --depth=1 https://github.com/felt/tippecanoe.git /tmp/tippecanoe \
|
||||||
|
&& make -C /tmp/tippecanoe -j$(nproc) \
|
||||||
|
&& strip /tmp/tippecanoe/tippecanoe
|
||||||
|
|
||||||
|
# ── Stage 2 : image finale ─────────────────────────────────────────────────
|
||||||
FROM dunglas/frankenphp:latest-php8.3
|
FROM dunglas/frankenphp:latest-php8.3
|
||||||
|
|
||||||
# Dépendances système (GDAL pour vectorisation satellite, Tippecanoe pour vector tiles)
|
# Binaire Tippecanoe issu du stage de compilation
|
||||||
|
COPY --from=tippecanoe-builder /tmp/tippecanoe/tippecanoe /usr/local/bin/tippecanoe
|
||||||
|
|
||||||
|
# Dépendances système (GDAL pour vectorisation satellite)
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
@@ -8,7 +25,6 @@ RUN apt-get update && apt-get install -y \
|
|||||||
git \
|
git \
|
||||||
gdal-bin \
|
gdal-bin \
|
||||||
python3-gdal \
|
python3-gdal \
|
||||||
tippecanoe \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Extensions PHP
|
# Extensions PHP
|
||||||
|
|||||||
Reference in New Issue
Block a user