Skip to content

Commit

Permalink
fix: fixing docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongh00 committed Mar 10, 2023
1 parent 324678c commit 5b232f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ ARG JAR_FILE=build/libs/*.jar
# build가 되는 시점에 JAR_FILE 이라는 변수명에 build/libs/*.jar 표현식을 선언함
COPY ${JAR_FILE} app.jar
# JAR_FILE 을 app.jar로 복사함
ENTRYPOINT ["java","-jar","/app.jar"]
ENTRYPOINT ["java", "-jar", "app.jar"]
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jar {
enabled = false
}

bootJar {
enabled = true
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/ST_DASHBOARD?serverTimezone=Asia/Seoul
url: jdbc:mysql://localhost:3306/ST_DASHBOARD?useSSL=false
username: ST_BE
password: root

Expand Down

0 comments on commit 5b232f5

Please sign in to comment.