Skip to content

Commit

Permalink
SB-28 (Feat) : Add Dockerfile
Browse files Browse the repository at this point in the history
 SB-28 (Feat) : Add Dockerfile

Add Delivery Dockerfile
  • Loading branch information
Jyuung committed Aug 15, 2024
1 parent cd246f8 commit f0d3722
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 29 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ bootJar{
}

jar{
enabled = true
enabled = false
}
3 changes: 3 additions & 0 deletions delivery/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM openjdk:17-jdk-slim
ADD /delivery/build/libs/*.jar warehouse.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/delivery.jar"]
29 changes: 1 addition & 28 deletions delivery/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
spring:
jpa:
show-sql: true
hibernate:
ddl-auto: validate
properties:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.MySQL8Dialect
datasource:
url: jdbc:mysql://localhost:3306/baobab?useSSL=false&useUnicode=true&allowPublicKeyRetrieval=true
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 1234
file:
upload-dir: /Users/yeongwoonshin/Desktop/Baobab-SERVER/warehouse/src/main/resources/static/images/
path : /images/

jwt:
secret:
key: shinyangjunglee_baobab_passwordkey
access-token:
plus-hour: 1
refresh-token:
plus-hour: 12

server:
port: 8081
temp

0 comments on commit f0d3722

Please sign in to comment.