-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
73 lines (59 loc) · 1.53 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y install \
sudo \
curl \
git \
vim \
jq \
sqlite3
RUN apt-get -y install \
build-essential \
gcc \
g++ \
make \
python3 \
python-is-python3 \
libsqlite3-dev \
zlib1g-dev
RUN apt-get -y install \
gdal-bin \
osm2pgsql \
osmosis \
osmium-tool \
osmctools
WORKDIR /app
# dependencies for tilemaker
RUN apt-get -y install \
libboost-dev \
libboost-filesystem-dev \
libboost-iostreams-dev \
libboost-program-options-dev \
libboost-system-dev \
lua5.1 \
liblua5.1-0-dev \
libprotobuf-dev \
libshp-dev \
protobuf-compiler \
rapidjson-dev
RUN git clone --depth 1 https://github.com/systemed/tilemaker &&\
cd tilemaker; make -j 3; make install; cd .. &&\
cp tilemaker/resources/config-openmaptiles.json ./config.json &&\
cp tilemaker/resources/process-openmaptiles.lua ./process.lua &&\
rm -rf tilemaker
RUN git clone --depth 1 https://github.com/felt/tippecanoe &&\
cd tippecanoe; make -j 3; make install &&\
cd ..; rm -rf tippecanoe
RUN curl -Ls https://deb.nodesource.com/setup_18.x | bash
RUN apt-get update && apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
RUN npm i -g http-server
RUN npm i -g mbtiles2tilejson
RUN npm i -g osmtogeojson
RUN npm i -g geojson2poly
RUN git clone --depth 1 https://github.com/unvt/charites &&\
cd charites; npm ci; npm run build; npm install -g .
WORKDIR /app
CMD ["/bin/bash"]