FROM openjdk:8-jre-slim
MAINTAINER hiwepy

ENV PARAMS=""

ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

VOLUME /tmp
ADD target/jeebiz-shadow-*.jar /app.jar
ADD jmxtrans-agent-1.2.10.jar /jmxtrans/jmxtrans-agent.jar
ADD jmxtrans-agent.xml /jmxtrans

ENTRYPOINT ["sh", "-c", "java", "-javaagent:/jmxtrans/jmxtrans-agent.jar=/jmxtrans/jmxtrans-agent.xml", "-jar $JAVA_OPTS /app.jar $PARAMS"]
作者:Jeebiz  创建时间:2020-10-20 10:00
 更新时间:2024-02-26 11:18