| 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 |
|
|
| |
| 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"] |