-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (12 loc) Β· 809 Bytes
/
Dockerfile
File metadata and controls
15 lines (12 loc) Β· 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM eclipse-temurin:21-jre-jammy
# λ΄λ λ¦, μΌνΈλ¦¬
ARG NR_AGENT_VERSION=9.1.0
ARG SENTRY_AGENT_VERSION=8.34.1
RUN apt-get update && apt-get install -y curl && \
curl -fSL https://download.newrelic.com/newrelic/java-agent/newrelic-agent/${NR_AGENT_VERSION}/newrelic-agent-${NR_AGENT_VERSION}.jar -o /newrelic.jar && \
curl -fSL https://repo1.maven.org/maven2/io/sentry/sentry-opentelemetry-agent/${SENTRY_AGENT_VERSION}/sentry-opentelemetry-agent-${SENTRY_AGENT_VERSION}.jar -o /sentry-agent.jar && \
rm -rf /var/lib/apt/lists/*
# λΉλ μ μμ±λ jar νμΌμ 컨ν
μ΄λ λ΄λΆλ‘ λ³΅μ¬ (plain jar μ μΈ)
ARG JAR_FILE=build/libs/*[!-plain].jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -javaagent:/newrelic.jar -javaagent:/sentry-agent.jar -jar /app.jar"]