Skip to content

Commit 97af185

Browse files
committed
prebuild image
1 parent 7b448cc commit 97af185

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

docker/Dockerfile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:24.04
1+
FROM ubuntu:24.04 AS builder
22

33
RUN apt-get update \
44
&& apt-get install -y --no-install-recommends \
@@ -22,3 +22,23 @@ RUN curl -L --silent --show-error --fail -o /data/sources/water-polygons-split-3
2222
https://osmdata.openstreetmap.de/download/water-polygons-split-3857.zip
2323
RUN curl -L --silent --show-error --fail -o /data/sources/lake_centerline.shp.zip \
2424
https://github.com/acalcutt/osm-lakelines/releases/download/v12/lake_centerline.shp.zip
25+
26+
RUN java -jar /planetiler.jar --download_dir=/data/sources --minzoom=0 --maxzoom=14 --osm_path=/data/boston.osm.pbf --output=/data/boston.mbtiles
27+
28+
FROM ubuntu:24.04
29+
30+
RUN apt-get update \
31+
&& apt-get install -y --no-install-recommends \
32+
curl \
33+
openjdk-21-jre-headless \
34+
git
35+
36+
RUN curl -L --silent --show-error --fail -o /planetiler.jar \
37+
https://github.com/onthegomap/planetiler/releases/download/v0.9.0/planetiler.jar \
38+
&& curl -L --silent --show-error --fail -o /martin.tar.gz \
39+
https://github.com/maplibre/martin/releases/download/v0.17.0/martin-x86_64-unknown-linux-gnu.tar.gz \
40+
&& tar -xzf /martin.tar.gz -C /usr/local/bin \
41+
&& rm /martin.tar.gz \
42+
&& mkdir -p /data/sources
43+
44+
COPY --from=builder /data/boston.mbtiles /data/boston.mbtiles

0 commit comments

Comments
 (0)