Update Dockerfile

هذا الالتزام موجود في:
2025-11-17 08:45:48 +00:00
الأصل e43fa37b15
التزام 9dc84fce5d

عرض الملف

@@ -9,6 +9,7 @@ RUN mvn clean install -DskipTests
FROM eclipse-temurin:21.0.1_12-jre FROM eclipse-temurin:21.0.1_12-jre
ENV JAVA_OPTS "-Xmx1g -Xms1g" ENV JAVA_OPTS "-Xmx1g -Xms1g"
ENV GH_URL ""
RUN mkdir -p /data RUN mkdir -p /data
@@ -18,8 +19,9 @@ COPY --from=build /graphhopper/web/target/graphhopper*.jar ./
COPY graphhopper.sh graphhopper/config-example.yml ./ COPY graphhopper.sh graphhopper/config-example.yml ./
# Enable connections from outside of the container # Remove the previous sed command since we're hardcoding in the script
RUN sed -i '/^ *bind_host/s/^ */&# /p' config-example.yml # 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" ] VOLUME [ "/data" ]
@@ -27,4 +29,4 @@ EXPOSE 8989 8990
HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:8989/health || exit 1 HEALTHCHECK --interval=5s --timeout=3s CMD curl --fail http://localhost:8989/health || exit 1
ENTRYPOINT [ "./graphhopper.sh", "-c", "config-example.yml" ] ENTRYPOINT [ "./graphhopper.sh", "-c", "config-example.yml" ]