[英]How do I build a Spring Boot app (Maven) with a Dockerfile?
[英]Where is the Dockerfile used with Spring Boot app?
我是一名初級 Java 開發人員,正在學習 Docker。 在工作中,我們使用 Dockerfile 使用 Spring Boot 開發微服務,在 Dockerfile 中我看到有 Tomcat 的配置。 我想問你這個Dockerfile在哪里使用? 在部署? 我們正在使用 Jenkins 管道在 Openshift 上進行部署。 在 Openshift 上部署應用程序時是否使用此 Dockerfile? 謝謝!
您不一定需要 Dockerfile。
例如,根據您設置項目的方式,Maven/Gradle 將為您提供一個,或者項目可以使用Jib
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.