Dockerfile 535 B

1234567891011121314151617
  1. # 网络问题无法下载可以改为阿里云镜像
  2. # FROM registry.cn-hangzhou.aliyuncs.com/bladex-repo/alpine-java:openjdk17_cn_slim
  3. FROM bladex/alpine-java:openjdk17_cn_slim
  4. LABEL maintainer="bladejava@qq.com"
  5. RUN mkdir -p /blade
  6. WORKDIR /blade
  7. EXPOSE 8800
  8. COPY ./target/blade-api.jar ./app.jar
  9. 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"]
  10. CMD ["--spring.profiles.active=test"]