Dockerfile 269 B

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