Skip to content

Commit d6ec799

Browse files
committed
Add curl installation for health check in Dockerfile #1616
1 parent 475b970 commit d6ec799

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

turms-gateway/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ RUN java -Djarmode=layertools -jar app.jar extract
3131
# because we have some UNSAFE operations on Java internal classes
3232
FROM eclipse-temurin:25.0.2_10-jre-noble
3333

34+
# Install curl for health check
35+
# Notes: Some base images have installed curl,
36+
# run "docker run -it --rm <image> curl --version" to check if curl is installed.
37+
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
38+
3439
ENV TURMS_GATEWAY_HOME=/opt/turms/turms-gateway
3540
WORKDIR ${TURMS_GATEWAY_HOME}
3641

turms-service/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ RUN java -Djarmode=layertools -jar app.jar extract
3131
# because we have some UNSAFE operations on Java internal classes
3232
FROM eclipse-temurin:25.0.2_10-jre-noble
3333

34+
# Install curl for health check
35+
# Notes: Some base images have installed curl,
36+
# run "docker run -it --rm <image> curl --version" to check if curl is installed.
37+
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
38+
3439
ENV TURMS_SERVICE_HOME=/opt/turms/turms-service
3540
WORKDIR ${TURMS_SERVICE_HOME}
3641

0 commit comments

Comments
 (0)