-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (32 loc) · 1.21 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
FROM node:18.1.0-bullseye-slim
LABEL maintainer "<[email protected]>"
# Install utilities
RUN apt-get update \
&& apt-get install -y wget curl openssl ca-certificates nano unzip p7zip-full libsqlite3-dev zlib1g-dev git build-essential gdal-bin --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Install mapshaper
RUN npm install -g mapshaper
# Install rclone
RUN curl -k -O https://downloads.rclone.org/rclone-current-linux-amd64.zip \
&& unzip rclone-current-linux-amd64.zip \
&& cd rclone-*-linux-amd64 && cp rclone /usr/bin/ && cd .. \
&& chmod 755 /usr/bin/rclone
# Install tippcanoe
RUN git clone https://github.com/mapbox/tippecanoe \
&& cd tippecanoe \
&& make -j \
&& make install
# Setup workdir
WORKDIR /calysteau
# Install sources and scripts
COPY calysteau/scripts/generate-toponyms.js ./scripts/generate-toponyms.js
COPY calysteau/download.sh .
COPY calysteau/generate_geojsons.sh .
COPY calysteau/generate_geojsons_toponyms.sh .
COPY calysteau/generate_mbtiles.sh .
COPY calysteau/merge_mbtiles.sh .
RUN chmod +x download.sh generate_geojsons.sh generate_geojsons_toponyms.sh generate_mbtiles.sh merge_mbtiles.sh
COPY package.json .
COPY yarn.lock .
RUN yarn
CMD ["/bin/bash"]