Skip to content

Commit f25e4b6

Browse files
committed
fix: Dockerfile 수정 5
- path 수정 - bootJar 시, 파일명 수정
1 parent 74be629 commit f25e4b6

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

chat/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ dependencies {
5656
implementation("org.springframework.boot:spring-boot-starter-data-redis")
5757
}
5858

59+
tasks.bootJar {
60+
archiveFileName = "soundlink_chat.jar"
61+
}
5962
// Git 커밋 정보를 git.properties로 생성
6063
gitProperties {
6164
keys = listOf("git.commit.id.abbrev") // 짧은 커밋 ID 사용

default/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ tasks.withType<Test> {
102102
useJUnitPlatform()
103103
}
104104

105+
tasks.bootJar {
106+
archiveFileName = "soundlink_default.jar"
107+
}
108+
105109
// Querydsl 빌드 옵션 설정
106110
val generatedDir = "src/main/generated"
107111

docker/chat.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM openjdk:17-jdk-slim
33

44
# The application's jar file
5-
ARG JAR_FILE=chat/build/libs/SoundLinkChat_Java-0.0.1-SNAPSHOT.jar
5+
ARG JAR_FILE=chat/build/libs/soundlink_chat.jar
66

77
# Add the application's jar to the container
88
COPY ${JAR_FILE} app.jar

docker/default.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM openjdk:17-jdk-slim
33

44
# The application's jar file
5-
ARG JAR_FILE=default/build/libs/SoundLink_Java-0.0.1-SNAPSHOT
5+
ARG JAR_FILE=default/build/libs/soundlink_default.jar
66

77
# Add the application's jar to the container
88
COPY ${JAR_FILE} app.jar

0 commit comments

Comments
 (0)