forked from joe-akeem/contour-tiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (44 loc) · 1.14 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM osgeo/gdal:ubuntu-full-3.6.3
MAINTAINER joeakeem "[email protected]"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get clean
RUN apt-get update -y && apt-get install -y software-properties-common
RUN add-apt-repository ppa:ubuntugis/ppa
RUN apt-get update -y && apt-get install -y \
postgis \
make \
curl \
unzip \
git \
cmake \
g++ \
libboost-dev \
libboost-system-dev \
libboost-filesystem-dev \
libexpat1-dev zlib1g-dev \
libbz2-dev \
libpq-dev \
libproj-dev \
lua5.2 \
liblua5.2-dev \
build-essential \
libsqlite3-dev \
zlib1g-dev \
wget \
python3-gdal \
gdal-bin \
parallel
# build & install tippecanoe
WORKDIR /tmp
RUN git clone https://github.com/mapbox/tippecanoe.git
WORKDIR /tmp/tippecanoe
RUN make
RUN make install
# cleanup
RUN rm -rf /tmp/tippecanoe
# Add the Makefile & sql scripts
COPY Makefile /contours/Makefile
COPY sql /sql
WORKDIR /contours
ENTRYPOINT ["/bin/bash", "-c", "sleep 10s && export OGR_GEOJSON_MAX_OBJ_SIZE=100000MB && /usr/bin/make"]
CMD ["all"]