Dockerfile 281 B

1234567
  1. FROM java:8
  2. EXPOSE 9004
  3. ENV TZ=Asia/Shanghai
  4. RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
  5. ADD crowd_review-1.0-SNAPSHOT.jar /root
  6. WORKDIR /root
  7. ENTRYPOINT ["java", "-jar", "-Djava.security.egd=file:/dev/./urandom", "crowd_review-1.0-SNAPSHOT.jar"]