File size: 633 Bytes
93b1b27 5786e25 195829c d33966b 195829c d33966b 5786e25 d33966b 8278340 5786e25 195829c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
FROM ghcr.io/project-osrm/osrm-backend:latest
WORKDIR /data
RUN apt-get update && apt-get install -y wget
RUN wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf
# Fix: Remove inline comments after line continuation characters
RUN umask 000 && \
osrm-extract -p /opt/car.lua berlin-latest.osm.pbf && \
osrm-partition berlin-latest.osrm && \
osrm-customize berlin-latest.osrm && \
chmod -R a+rwX /data/*
RUN find /data -type d -exec chmod 777 {} \+ && \
find /data -type f -exec chmod 666 {} \+
EXPOSE 7860
CMD ["osrm-routed", "--algorithm", "mld", "--port", "7860", "berlin-latest.osrm"] |