-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.tiles
More file actions
28 lines (22 loc) · 1.04 KB
/
Dockerfile.tiles
File metadata and controls
28 lines (22 loc) · 1.04 KB
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
FROM python:3.9 AS tilegen
WORKDIR /app
# Install dependencies
RUN apt-get update && apt-get install -y \
git build-essential \
libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-system-dev \
lua5.1 liblua5.1-0-dev libshp-dev libsqlite3-dev rapidjson-dev curl bash \
libpq-dev libssl-dev libffi-dev pkg-config graphviz sqlite3 aria2 osmctools
RUN git clone https://github.com/openmaptiles/openmaptiles-tools.git && \
cd openmaptiles-tools && \
python -m venv venv && \
./venv/bin/python -m pip install --upgrade pip setuptools wheel setuptools_scm && \
./venv/bin/python -m pip install -r requirements.txt
ENV PATH="/app/openmaptiles-tools/venv/bin:$PATH"
# Install tilemaker
RUN git clone --depth 1 https://github.com/systemed/tilemaker.git && \
cd tilemaker && make && make install
COPY ./tileset ./tileset
COPY ./scripts/getTiles.sh ./scripts/getTiles.sh
RUN chmod +x ./scripts/getTiles.sh
# Run the complete tile generation
CMD ["sh", "-c", "scripts/getTiles.sh && echo 'Tile generation complete'"]