简体   繁体   English

Quarkus:dockerfile.jvm 与 dockerfile.native

[英]Quarkus: dockerfile.jvm vs dockerfile.native

can you explain to me what is the difference between a Dockerfile.jvm and Dockerfile.native image?你能给我解释一下 Dockerfile.jvm 和 Dockerfile.native 镜像有什么区别吗? I know that each one has its purpose based image, but I have not understood the utility of each and in what context I use them?我知道每个人都有其基于目的的图像,但我不了解每个人的效用以及我在什么情况下使用它们?

Thank you:)谢谢:)

The name is self explicit: you can build a Quarkus application either as a standard Java application or as a native executable using GraalVM (and -Dnative ).这个名字是不言而喻的:您可以将 Quarkus 应用程序构建为标准 Java 应用程序或使用 GraalVM(和-Dnative )的本机可执行文件。

If you do the former, then use Dockerfile.jvm , if you do the latter, use Dockerfile.native .如果您执行前者,则使用Dockerfile.jvm ,如果您执行后者,则使用Dockerfile.native

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM