From c65632816eb28ca40422b3c1e98cee8c3304ae06 Mon Sep 17 00:00:00 2001 From: dolong2 Date: Tue, 19 Dec 2023 11:31:42 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=EC=82=AC=ED=95=AD=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/service/impl/CreateDockerFileServiceImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/dcd/server/core/domain/application/service/impl/CreateDockerFileServiceImpl.kt b/src/main/kotlin/com/dcd/server/core/domain/application/service/impl/CreateDockerFileServiceImpl.kt index 794a9244..81ba30aa 100644 --- a/src/main/kotlin/com/dcd/server/core/domain/application/service/impl/CreateDockerFileServiceImpl.kt +++ b/src/main/kotlin/com/dcd/server/core/domain/application/service/impl/CreateDockerFileServiceImpl.kt @@ -22,7 +22,7 @@ class CreateDockerFileServiceImpl( val name = application.name try { val file = File("./$name/Dockerfile") - file.writeText(FileContent.getSpringBootDockerFileContent(name, javaVersion)) + file.writeText(FileContent.getSpringBootDockerFileContent(name, javaVersion, application.port)) if (!file.createNewFile()) return } catch (e: IOException) { @@ -37,7 +37,7 @@ class CreateDockerFileServiceImpl( ApplicationType.SPRING_BOOT -> { val name = application.name val file = File("./$name/Dockerfile") - file.writeText(FileContent.getSpringBootDockerFileContent(name, javaVersion)) + file.writeText(FileContent.getSpringBootDockerFileContent(name, javaVersion, application.port)) try { if (!file.createNewFile()) return