Dockerfile 748 B

12345678910111213141516171819202122
  1. # anapsix/alpine-java:8_server-jre_unlimited无法拉取了
  2. # openjdk有些代码无法使用,尤其是定时任务的,报错
  3. # 如果下面的也失效了,可以改成 registry.cn-hangzhou.aliyuncs.com/interlock/alpine-java:8_server-jre_unlimited
  4. #FROM openjdk:8-jdk-alpine
  5. #FROM anapsix/alpine-java:8_server-jre_unlimited
  6. FROM registry.cn-hangzhou.aliyuncs.com/interlock/alpine-java:8_server-jre_unlimited
  7. MAINTAINER jeecgos@163.com
  8. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
  9. #RUN mkdir -p /jeecg-boot/config/jeecg/
  10. WORKDIR /jeecg-boot
  11. EXPOSE 8520
  12. #ADD ./src/main/resources/jeecg ./config/jeecg
  13. ADD ./jeecg-system-start-3.4.3.jar ./
  14. CMD java -Djava.security.egd=file:/dev/./urandom -jar jeecg-system-start-3.4.3.jar