Update Dockerfile
Browse files- Dockerfile +5 -9
Dockerfile
CHANGED
@@ -1,25 +1,21 @@
|
|
1 |
-
# CORRECTED base image name (project-osrm/osrm-backend)
|
2 |
FROM ghcr.io/project-osrm/osrm-backend:latest
|
3 |
|
4 |
WORKDIR /data
|
5 |
|
6 |
-
# Install dependencies
|
7 |
RUN apt-get update && apt-get install -y wget
|
8 |
|
9 |
-
# Get Berlin data
|
10 |
RUN wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf
|
11 |
|
12 |
-
#
|
13 |
RUN umask 000 && \
|
14 |
-
osrm-extract -p /opt/car.lua berlin-latest.osm.pbf && \
|
15 |
-
osrm-partition berlin-latest.osrm && \
|
16 |
-
osrm-customize berlin-latest.osrm && \
|
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"]
|
|
|
|
|
1 |
FROM ghcr.io/project-osrm/osrm-backend:latest
|
2 |
|
3 |
WORKDIR /data
|
4 |
|
|
|
5 |
RUN apt-get update && apt-get install -y wget
|
6 |
|
|
|
7 |
RUN wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf
|
8 |
|
9 |
+
# Fix: Remove inline comments after line continuation characters
|
10 |
RUN umask 000 && \
|
11 |
+
osrm-extract -p /opt/car.lua berlin-latest.osm.pbf && \
|
12 |
+
osrm-partition berlin-latest.osrm && \
|
13 |
+
osrm-customize berlin-latest.osrm && \
|
14 |
chmod -R a+rwX /data/*
|
15 |
|
|
|
16 |
RUN find /data -type d -exec chmod 777 {} \+ && \
|
17 |
find /data -type f -exec chmod 666 {} \+
|
18 |
|
19 |
EXPOSE 7860
|
20 |
|
21 |
+
CMD ["osrm-routed", "--algorithm", "mld", "--port", "7860", "berlin-latest.osrm"]
|