Dockerfile 409 B

123456789101112131415
  1. FROM bladex/alpine-java:openjdk17_cn_slim
  2. LABEL maintainer="bladejava@qq.com"
  3. RUN mkdir -p /blade/auth
  4. WORKDIR /blade/auth
  5. EXPOSE 8100
  6. COPY ./target/blade-auth.jar ./app.jar
  7. ENTRYPOINT ["java", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
  8. CMD ["--spring.profiles.active=test"]