Dockerfile 420 B

123456789101112
  1. FROM carlye/jdk8-arm64
  2. MAINTAINER tianping <email=48690326@qq.com>
  3. RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone
  4. RUN mkdir /micro -p
  5. ADD run-docker.sh /micro/run.sh
  6. RUN cd /micro&&chmod u+x *
  7. ADD target/*-exec.jar /micro
  8. EXPOSE 11006
  9. ENV PATH=${PATH}:/micro
  10. ENV S_ACTIVE=${S_ACTIVE:-dev}
  11. ENV JAVA_OPS=${JAVA_OPS:-'-Xms512M -Xmx2048M'}
  12. ENTRYPOINT ["run.sh","console"]