Dockerfile 392 B

12345678910111213141516171819
  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 /avenue-codegen
  7. WORKDIR /avenue-codegen
  8. EXPOSE 5003
  9. ADD ./target/avenue-codegen.jar ./
  10. CMD sleep 120;java $JAVA_OPTS -jar avenue-codegen.jar