الملفات
ghaymah_dev ba873648e5
فشلت بعض الفحوصات
Build and publish graphhopper image / build-and-publish (push) Has been cancelled
Update Dockerfile
2025-11-17 08:48:25 +00:00

31 أسطر
702 B
Docker

FROM maven:3.9.5-eclipse-temurin-21 as build
WORKDIR /graphhopper
RUN mvn clean install -DskipTests
FROM eclipse-temurin:21.0.1_12-jre
ENV JAVA_OPTS "-Xmx1g -Xms1g"
ENV GH_URL ""
RUN mkdir -p /data
WORKDIR /graphhopper
COPY --from=build /graphhopper/web/target/graphhopper*.jar ./
COPY graphhopper.sh ./
# Remove the previous sed command since we're hardcoding in the script
# Enable connections from outside of the container by hardcoding 0.0.0.0 in config
RUN sed -i 's/^\( *bind_host:\).*/\1 0.0.0.0/' 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" ]