Update Dockerfile
Browse files- Dockerfile +8 -9
Dockerfile
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
WORKDIR /data
|
4 |
|
@@ -8,19 +9,17 @@ RUN apt-get update && apt-get install -y wget
|
|
8 |
# Get Berlin data
|
9 |
RUN wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf
|
10 |
|
11 |
-
# Process data
|
12 |
-
# 1️⃣ Force liberal UMASK during creation (files=666/dirs=777)
|
13 |
-
# 2️⃣ Explicitly verify key file accessibility
|
14 |
RUN umask 000 && \
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
chmod -R a+rwX /data/*
|
19 |
|
20 |
-
# Final
|
21 |
RUN find /data -type d -exec chmod 777 {} \+ && \
|
22 |
find /data -type f -exec chmod 666 {} \+
|
23 |
|
24 |
EXPOSE 7860
|
25 |
|
26 |
-
CMD ["
|
|
|
1 |
+
# CORRECTED base image name (project-osrm/osrm-backend)
|
2 |
+
FROM ghcr.io/project-osrm/osrm-backend:latest
|
3 |
|
4 |
WORKDIR /data
|
5 |
|
|
|
9 |
# Get Berlin data
|
10 |
RUN wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf
|
11 |
|
12 |
+
# Process data with explicit permissions
|
|
|
|
|
13 |
RUN umask 000 && \
|
14 |
+
osrm-extract -p /opt/car.lua berlin-latest.osm.pbf && \ # CORRECTED: osrm-extract
|
15 |
+
osrm-partition berlin-latest.osrm && \ # CORRECTED: .osrm
|
16 |
+
osrm-customize berlin-latest.osrm && \ # CORRECTED: osrm-customize
|
17 |
chmod -R a+rwX /data/*
|
18 |
|
19 |
+
# Final permission sweep
|
20 |
RUN find /data -type d -exec chmod 777 {} \+ && \
|
21 |
find /data -type f -exec chmod 666 {} \+
|
22 |
|
23 |
EXPOSE 7860
|
24 |
|
25 |
+
CMD ["osrm-routed", "--algorithm", "mld", "--port", "7860", "berlin-latest.osrm"] # CORRECTED: osrm-routed
|