Skip to content

Commit

Permalink
chore: 배포 환경 변경(prod->stage)
Browse files Browse the repository at this point in the history
  • Loading branch information
limehee committed Apr 13, 2024
1 parent 4de0e06 commit 331baec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:21
EXPOSE 8080
COPY build/libs/clab-prod.jar /clab.jar
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=prod", "/clab.jar"]
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=stage", "/clab.jar"]
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jar {

bootJar {
archivesBaseName = "clab"
archiveVersion = "0.0.1"
archiveVersion = "1.0.0"

from("/src/main/resources") {
into 'BOOT-INF/classes'
Expand All @@ -23,6 +23,8 @@ bootJar {

if (project.hasProperty('prod')) {
archiveFileName = "clab-prod.jar"
} else if (project.hasProperty('stage')) {
archiveFileName = "clab-stage.jar"
} else {
archiveFileName = "clab.jar"
}
Expand Down

0 comments on commit 331baec

Please sign in to comment.