shrijayan commited on
Commit
93b1b27
·
verified ·
1 Parent(s): d33966b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -9
Dockerfile CHANGED
@@ -1,4 +1,5 @@
1
- FROM ghcr.io/project-osrm/osrim-backend:latest
 
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 WITH FULL PERMISSIONS:
12
- # 1️⃣ Force liberal UMASK during creation (files=666/dirs=777)
13
- # 2️⃣ Explicitly verify key file accessibility
14
  RUN umask 000 && \
15
- osrim-extract -p /opt/car.lua berlin-latest.osm.pbf && \
16
- osrim-partition berlin-latest.osrim && \
17
- osrim-customize berlin-latest.osrim && \
18
  chmod -R a+rwX /data/*
19
 
20
- # Final global permission sweep ⚠️ Security tradeoff accepted
21
  RUN find /data -type d -exec chmod 777 {} \+ && \
22
  find /data -type f -exec chmod 666 {} \+
23
 
24
  EXPOSE 7860
25
 
26
- CMD ["osrim-routed", "--algorithm", "mld", "--port", "7860", "berlin-latest.osrim"]
 
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