Skip to content

Commit

Permalink
Feat: set main class for jib
Browse files Browse the repository at this point in the history
  • Loading branch information
versatile0010 committed Jan 8, 2024
1 parent 4b19f0d commit 088d9e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions daepiro-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jib {
tags = ["latest"]
}
container {
mainClass = 'com.numberone.backend.BackendApplication'
jvmFlags = ["-Duser.timezone=Asia/Seoul", "-Xms128m", "-Xmx128m"]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan
public class BackendApplication {
public static void main(String[] args) {
SpringApplication.run(BackendApplication.class, args);
Expand Down

0 comments on commit 088d9e2

Please sign in to comment.