Skip to content

Commit 67653ee

Browse files
feat: add Dockerfile for netherlands + finland
1 parent ff05f15 commit 67653ee

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM ubuntu:22.04 AS downloader
2+
3+
RUN apt-get update && apt-get install -y wget osmium-tool
4+
5+
# Download PBFs
6+
RUN wget -O /finland.osm.pbf \
7+
https://download.geofabrik.de/europe/finland-latest.osm.pbf
8+
9+
RUN wget -O /netherlands.osm.pbf \
10+
https://download.geofabrik.de/europe/netherlands-latest.osm.pbf
11+
12+
# Merge them
13+
RUN osmium merge /finland.osm.pbf /netherlands.osm.pbf -o /merged.osm.pbf
14+
15+
16+
FROM osrm/osrm-backend AS builder
17+
18+
COPY --from=downloader /merged.osm.pbf /data/map.osm.pbf
19+
20+
RUN osrm-extract -p /opt/car.lua /data/map.osm.pbf && \
21+
osrm-partition /data/map.osrm && \
22+
osrm-customize /data/map.osrm
23+
24+
25+
FROM osrm/osrm-backend
26+
27+
COPY --from=builder /data/*.osrm* /data/
28+
29+
EXPOSE 5000
30+
31+
CMD ["osrm-routed", "--algorithm", "mld", "/data/map.osrm"]

0 commit comments

Comments
 (0)