-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·28 lines (20 loc) · 829 Bytes
/
Dockerfile
File metadata and controls
executable file
·28 lines (20 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM openjdk:8-jdk as build
RUN mkdir -p /app
WORKDIR /app
ADD build.gradle /app
ADD . /app
RUN ./gradlew -i bootJar
# ---------------------------------------------------------- #
FROM openjdk:8-jdk as release
# Update <environmentURL> below.
# environmentURL=mss33078.dev.dynatracelabs.com
# TECHNOLOGY=java
COPY --from=<environmentURL>/linux/oneagent-codemodules:java / /
ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so
ENV DT_LIVEDEBUGGER_LABELS=app:josh
ENV DT_LIVEDEBUGGER_REMOTE_ORIGIN=ssh://git@bitbucket.lab.dynatrace.org/dobs/tutorial-java-workshop.git
ENV DT_LIVEDEBUGGER_COMMIT=main
RUN mkdir -p /app
# Copy the jar image (which already include resoures)
COPY --from=build /app/build/libs/tutorial-1.0.0.jar /app/tutorial-1.0.0.jar
ENTRYPOINT ["java", "-jar", "/app/tutorial-1.0.0.jar"]