2018-05-11 09:30:45 +00:00
|
|
|
FROM java:8
|
|
|
|
|
|
|
|
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
|
|
|
|
|
|
|
ARG PINPOINT_VERSION
|
|
|
|
ARG AGENT_ID
|
|
|
|
ARG APP_NAME
|
2020-03-16 07:01:28 +00:00
|
|
|
ENV JAVA_OPTS="-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME} -Dspring.profiles.active=${SPRING_PROFILES}"
|
2018-05-11 09:30:45 +00:00
|
|
|
|
|
|
|
RUN mkdir -p javasample
|
|
|
|
COPY build/Sample.java javasample
|
|
|
|
WORKDIR javasample
|
|
|
|
|
|
|
|
RUN javac Sample.java
|
|
|
|
CMD java ${JAVA_OPTS} Sample
|