Skip to content

Commit c4fa980

Browse files
authored
Fix vehicle issue thanks to megan (#297)
1 parent 2d07585 commit c4fa980

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

docker-compose/ghopper/Dockerfile

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ WORKDIR /usr/src/app
88
RUN apt-get update
99
RUN apt-get -y install maven wget
1010

11-
RUN git clone https://github.com/graphhopper/graphhopper.git
11+
RUN git clone --single-branch -b 0.13 https://github.com/graphhopper/graphhopper.git
1212
RUN wget https://s3.amazonaws.com/tcat-gtfs/tcat-ny-us.zip
1313

1414
WORKDIR /usr/src/app/graphhopper
15-
RUN ./graphhopper.sh -a build
15+
RUN ./graphhopper.sh build
1616

1717
EXPOSE 8988
1818

19-
CMD java -Xmx4g -Xms4g \
20-
-Ddw.graphhopper.datareader.file=../map.osm \
21-
-Ddw.graphhopper.gtfs.file=../tcat-ny-us.zip \
22-
-Ddw.graphhopper.jetty.resourcebase=./graphhopper/web/src/main/webapp \
23-
-Ddw.graphhopper.prepare.ch.weightings=no \
24-
-Ddw.graphhopper.graph.location=./graph-cache \
25-
-Ddw.server.application_connectors[0].bind_host=0.0.0.0 \
26-
-Ddw.server.application_connectors[0].port=8988 \
27-
-jar web/target/graphhopper-web-*-SNAPSHOT.jar server config.yml
19+
CMD java -Xmx8g -Xms8g \
20+
-Dgraphhopper.datareader.file=../map.osm \
21+
-Dgraphhopper.gtfs.file=../tcat-ny-us.zip \
22+
-Dgraphhopper.jetty.resourcebase=./graphhopper/web/src/main/webapp \
23+
-Dgraphhopper.graph.flag_encoders=pt \
24+
-Dgraphhopper.graph.bytes_for_flags=12 \
25+
-Dgraphhopper.prepare.ch.weightings=no \
26+
-Dgraphhopper.graph.location=./graph-cache \
27+
-Ddw.server.applicationConnectors[0].bindHost=0.0.0.0 \
28+
-Ddw.server.applicationConnectors[0].port=8988 \
29+
-jar web/target/graphhopper-web-0.13-SNAPSHOT.jar server config.yml

0 commit comments

Comments
 (0)