-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 959 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM alpine:edge
RUN apk add file wget gcc g++ make cmake automake libtool autoconf curl git libc-dev sqlite sqlite-dev zlib-dev \
libxml2-dev libc6-compat librttopo-dev minizip-dev proj-dev fossil
# libgeos
RUN wget https://download.osgeo.org/geos/geos-3.12.1.tar.bz2 && \
tar xvfj geos-3.12.1.tar.bz2 && \
cd geos-3.12.1 && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local && \
make && \
ctest && \
make install
# libspatialite
RUN fossil clone https://www.gaia-gis.it/fossil/libspatialite libspatialite.fossil --user anonymous
RUN mkdir libspatialite && \
cd libspatialite && \
fossil open ../libspatialite.fossil && \
./configure --build=unknown-unknown-linux --enable-freexl=no && \
make -j8 && \
make install
RUN cp -r /usr/local/lib/* /usr/lib/
RUN sqlite3 test.db "SELECT load_extension('mod_spatialite'); SELECT spatialite_version();"
RUN sqlite3 -version