Dockerfile 253 B

1234567891011
  1. FROM openjdk:8-jre-slim
  2. MAINTAINER xuxueli
  3. ENV PARAMS=""
  4. ENV TZ=PRC
  5. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  6. ADD target/xxl-job-admin-*.jar /app.jar
  7. ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS /app.jar $PARAMS"]