一、bladex的Docker打包如何支持分层打包?
1.Docker分层打包的标准语句如下:
FROM openjdk:8-jre as builder WORKDIR application ADD ./target/*.jar ./app.jar RUN java -Djarmode=layertools -jar app.jar extract FROM openjdk:8-jre MAINTAINER ttzommed@foxmail.com WORKDIR application COPY --from=builder application/dependencies/ ./ COPY --from=builder application/spring-boot-loader/ ./ COPY --from=builder application/snapshot-dependencies/ ./ COPY --from=builder application/application/ ./ EXPOSE 36665 ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]
2.bladex目前的docker打包方式:
FROM bladex/alpine-java:openjdk8-openj9_cn_slim MAINTAINER bladejava@qq.com RUN mkdir -p /blade/desk WORKDIR /blade/desk EXPOSE 8105 ADD ./target/blade-desk.jar ./app.jar ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"] CMD ["--spring.profiles.active=test"]
3.问题
请问1.Docker分层中的 org.springframework.boot.loader.JarLauncher 启动参数通过哪种方式能传到bladex中?
扫一扫访问 Blade技术社区 移动端