Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Build
FROM eclipse-temurin:17-jdk AS build
LABEL authors="pjh5365"

WORKDIR /src
COPY . /src
RUN ./gradlew build

# Run
FROM eclipse-temurin:17-jre
EXPOSE 8080
COPY --from=build /src/build/libs/*SNAPSHOT.jar work-plate.jar

ENTRYPOINT ["java", "-jar", "work-plate.jar"]
20 changes: 20 additions & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 테스트용 환경 세팅
spring:
h2:
console:
enabled: true
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:testdb
data:
redis:
host: localhost
port: 6379
jpa:
hibernate:
ddl-auto: create
show-sql: true
JWT:
ACCESS_SECRET_KEY: "testAccessSecretKey"
REFRESH_SECRET_KEY: "testRefreshSecretKey"
ISSUER: "pjh5365"