Dockerfile 813 B

123456789101112131415161718192021
  1. #Docker镜像可以选择以下三种,前两种已经内置字体,第三种为原生的openjdk8-openj9镜像
  2. #1.FROM bladex/alpine-java:8_server-jre_cn_unlimited
  3. #2.FROM bladex/alpine-java:openjdk8-openj9_cn_slim
  4. #3.FROM adoptopenjdk/openjdk8-openj9:jdk8u262-b10_openj9-0.21.0-alpine-slim
  5. #第3点的tag可以到该地址查询:https://hub.docker.com/r/adoptopenjdk/openjdk8-openj9/tags?page=1&ordering=last_updated&name=alpine-slim
  6. #版本介绍一览:https://hub.docker.com/r/adoptopenjdk/openjdk8-openj9
  7. FROM bladex/alpine-java:openjdk8-openj9_cn_slim
  8. MAINTAINER bladejava@qq.com
  9. RUN mkdir -p /blade/auth
  10. WORKDIR /blade/auth
  11. EXPOSE 8100
  12. ADD ./target/blade-auth.jar ./app.jar
  13. ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
  14. CMD ["--spring.profiles.active=test"]