- They are no longer mutually exclusive - Input-independent default graph-cache location - `/data/default-gh' - Resolve #23 Technical changes: - Simplify handling: of script variables and their defaults - Remove complex configuration handling and copy - Remove unused variables - Modify "our" copy of `config-example.yml` to enable http connections from outside of the container - Update and clarify the help text
31 أسطر
615 B
Docker
31 أسطر
615 B
Docker
FROM maven:3.6.3-jdk-8 as build
|
|
|
|
WORKDIR /graphhopper
|
|
|
|
COPY graphhopper .
|
|
|
|
RUN mvn clean install
|
|
|
|
FROM openjdk:11.0-jre
|
|
|
|
ENV JAVA_OPTS "-Xmx1g -Xms1g"
|
|
|
|
RUN mkdir -p /data
|
|
|
|
WORKDIR /graphhopper
|
|
|
|
COPY --from=build /graphhopper/web/target/graphhopper*.jar .
|
|
|
|
COPY graphhopper.sh graphhopper/config-example.yml .
|
|
|
|
# Enable connections from outside of the container
|
|
RUN sed -i '/^ *bind_host/s/^ */&# /p' config-example.yml
|
|
|
|
VOLUME [ "/data" ]
|
|
|
|
EXPOSE 8989 8990
|
|
|
|
HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:8989/health || exit 1
|
|
|
|
ENTRYPOINT [ "./graphhopper.sh", "-c", "config-example.yml" ]
|