diff --git a/entry/batch/Dockerfile b/entry/batch/Dockerfile index 66d8ee3d..08214f5d 100644 --- a/entry/batch/Dockerfile +++ b/entry/batch/Dockerfile @@ -3,4 +3,6 @@ FROM amazoncorretto:17 ARG JAR_FILE=entry/batch/build/libs/*.jar COPY ${JAR_FILE} app.jar -ENTRYPOINT ["java", "-jar", "/app.jar"] +ENV SERVER_PORT=8081 + +ENTRYPOINT ["java", "-Dserver.port=${SERVER_PORT}", "-jar", "/app.jar"] diff --git a/entry/batch/src/main/kotlin/com/pokit/batch/BatchApplication.kt b/entry/batch/src/main/kotlin/com/pokit/batch/BatchApplication.kt index 2f3cb86e..20a3372a 100644 --- a/entry/batch/src/main/kotlin/com/pokit/batch/BatchApplication.kt +++ b/entry/batch/src/main/kotlin/com/pokit/batch/BatchApplication.kt @@ -9,6 +9,6 @@ import org.springframework.boot.runApplication class BatchApplication fun main(args: Array) { - System.setProperty("spring.config.name", "application-out-web, application-core, application-out-persistence, application-entry-batch") + System.setProperty("spring.config.name", "application-out-web, application-core, application-out-persistence") runApplication(*args) }