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
|
||||
|
||||
# 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 \
|
||||
libpq-dev \
|
||||
libzip-dev \
|
||||
@@ -8,7 +25,6 @@ RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
gdal-bin \
|
||||
python3-gdal \
|
||||
tippecanoe \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Extensions PHP
|
||||
|
||||
Reference in New Issue
Block a user