Dockerfile 384 B

123456789101112131415161718
  1. FROM pig4cloud/java:8-jre
  2. MAINTAINER wangiegie@gmail.com
  3. ENV TZ=Asia/Shanghai
  4. ENV JAVA_OPTS="-Xms128m -Xmx256m -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-codegen
  7. WORKDIR /pigx-codegen
  8. EXPOSE 5003
  9. ADD ./target/pigx-codegen.jar ./
  10. CMD sleep 120;java $JAVA_OPTS -jar pigx-codegen.jar