Skip to content

Commit

Permalink
chore: Dockerfile 포트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin3263 committed Aug 10, 2024
1 parent 4611e06 commit 06e1830
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion entry/batch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import org.springframework.boot.runApplication
class BatchApplication

fun main(args: Array<String>) {
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<BatchApplication>(*args)
}

0 comments on commit 06e1830

Please sign in to comment.