-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (15 loc) · 749 Bytes
/
Dockerfile
File metadata and controls
23 lines (15 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM docker.io/bellsoft/liberica-runtime-container:jre-25-cds-slim-musl
ARG PROJECT="appointments"
ARG OTEL_BASE="github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download"
ARG OTEL_VERSION="v1.32.1"
WORKDIR /opt/$PROJECT
COPY target/$PROJECT-*.jar application.jar
ADD https://$OTEL_BASE/$OTEL_VERSION/opentelemetry-javaagent.jar opentelemetry.jar
USER 1000
ENV OTEL_SERVICE_NAME "$PROJECT"
ENV PERFORMANCE_OPTIONS "-XX:+AlwaysPreTouch -XX:+UseParallelGC -XX:+UseNUMA"
ENV JAVA_TOOL_OPTIONS "$PERFORMANCE_OPTIONS"
HEALTHCHECK --interval=10s --start-period=10s CMD \
wget -O/dev/stdout --tries=1 \
http://localhost:8080/actuator/health 2>/dev/null | grep UP || exit 1
ENTRYPOINT [ "java", "-jar", "application.jar" ]