Dockerfile 380 B

123456789101112131415161718
  1. FROM pig4cloud/java:8-jre
  2. MAINTAINER wangiegie@gmail.com
  3. ENV TZ=Asia/Shanghai
  4. ENV JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom"
  5. RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  6. RUN mkdir -p /pigx-upms
  7. WORKDIR /pigx-upms
  8. EXPOSE 4000
  9. ADD ./target/pigx-upms-biz.jar ./
  10. CMD sleep 60;java $JAVA_OPTS -jar pigx-upms-biz.jar