@@ -12,7 +12,7 @@ RUN mkdir /tmp/libtiff \
1212 && curl -sfL https://download.osgeo.org/libtiff/tiff-${LIBTIFF_VERSION}.tar.gz | tar zxf - -C /tmp/libtiff --strip-components=1 \
1313 && cd /tmp/libtiff \
1414 && CFLAGS="-O2 -Wl,-S" CXXFLAGS="-O2 -Wl,-S" ./configure --prefix=$PREFIX \
15- && make -j $(nproc) --silent && make install && make clean \
15+ && make -j $(nproc) --silent && make install \
1616 && rm -rf /tmp/libtiff
1717
1818# proj
@@ -21,15 +21,15 @@ RUN mkdir /tmp/proj && mkdir /tmp/proj/data \
2121 && curl -sfL http://download.osgeo.org/proj/proj-datumgrid-latest.tar.gz | tar zxf - -C /tmp/proj/data \
2222 && cd /tmp/proj \
2323 && LDFLAGS="-Wl,-rpath,'\$\$ ORIGIN'" CFLAGS="-O2 -Wl,-S" CXXFLAGS="-O2 -Wl,-S" ./configure --prefix=$PREFIX --disable-static --enable-lto \
24- && make -j $(nproc) --silent && make install && make clean \
24+ && make -j $(nproc) --silent && make install \
2525 && rm -rf /tmp/proj
2626
2727# geos
2828RUN mkdir /tmp/geos \
2929 && curl -sfL http://download.osgeo.org/geos/geos-$GEOS_VERSION.tar.bz2 | tar jxf - -C /tmp/geos --strip-components=1 \
3030 && cd /tmp/geos \
3131 && CFLAGS="-O2 -Wl,-S" CXXFLAGS="-O2 -Wl,-S" ./configure --prefix=$PREFIX --disable-static \
32- && make -j $(nproc) --silent && make install && make clean \
32+ && make -j $(nproc) --silent && make install \
3333 && rm -rf /tmp/geos
3434
3535ENV PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig/
@@ -67,7 +67,6 @@ RUN cd /tmp/gdal \
6767 --with-xml2=yes \
6868 --with-webp=$PREFIX \
6969 --with-zstd=$PREFIX \
70- --disable-driver-bsb \
7170 --without-cfitsio \
7271 --without-ecw \
7372 --without-fme \
@@ -79,10 +78,20 @@ RUN cd /tmp/gdal \
7978 --without-libtool \
8079 --without-pcraster \
8180 --without-pcidsk \
82- --disable-driver-elastic
81+ --disable-all-optional-drivers \
82+ --enable-driver-shape \
83+ --enable-driver-gpkg \
84+ --enable-driver-sentinel2 \
85+ --enable-driver-xyz \
86+ --enable-driver-flatgeobuf \
87+ --enable-driver-mvt \
88+ --enable-driver-wmts \
89+ --enable-driver-wms \
90+ --enable-driver-mbtiles \
91+ --enable-driver-gpkg
8392
8493RUN cd /tmp/gdal \
85- && make -j $(nproc) --silent && make install && make clean \
94+ && make -j $(nproc) --silent && make install \
8695 && rm -rf /tmp/gdal
8796
8897# from https://github.com/pypa/manylinux/blob/d8ef5d47433ba771fa4403fd48f352c586e06e43/docker/build_scripts/build.sh#L133-L138
@@ -91,7 +100,7 @@ ENV PATCHELF_VERSION 0.10
91100RUN mkdir /tmp/patchelf \
92101 && curl -sfL https://github.com/NixOS/patchelf/archive/$PATCHELF_VERSION.tar.gz | tar zxf - -C /tmp/patchelf --strip-components=1 \
93102 && cd /tmp/patchelf && ./bootstrap.sh && ./configure \
94- && make -j $(nproc) --silent && make install && make clean \
103+ && make -j $(nproc) --silent && make install \
95104 && cd / && rm -rf /tmp/patchelf
96105
97106# Move /lib64 (libjpeg) to /lib
0 commit comments