【问题标题】:Where is the Dockerfile used with Spring Boot app?Spring Boot 应用程序使用的 Dockerfile 在哪里?
【发布时间】:2020-12-16 17:22:27
【问题描述】:

我是一名初级 Java 开发人员,正在学习 Docker。在工作中,我们正在使用 Dockerfile 使用 Spring Boot 开发微服务,在 Dockerfile 中我看到有 Tomcat 的配置。我想问你这个 Dockerfile 在哪里使用?在部署?我们正在使用 Jenkins 管道在 Openshift 上进行部署。当应用程序部署在 Openshift 上时,是否使用了这个 Dockerfile?谢谢!

【问题讨论】:

标签: java spring-boot docker dockerfile microservices


【解决方案1】:

您不一定需要 Dockerfile。

例如,根据您设置项目的方式,Maven/Gradle 会为您包含一个,或者项目可以使用 Jib

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-06-20
    • 1970-01-01
    • 2016-10-06
    • 1970-01-01
    • 1970-01-01
    • 2010-09-29
    • 1970-01-01
    • 2019-01-28
    相关资源
    最近更新 更多