Skip to content

Commit

Permalink
Chore: application.yml 경로 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
saokiritoni authored Nov 4, 2024
1 parent 1e14e97 commit eac7bdf
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# 기존 Dockerfile 예시
FROM bellsoft/liberica-openjdk-alpine:17
ARG JAR_FILE=build/libs/osori-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]

# 작업 디렉터리 설정
WORKDIR /app

# application.yml을 복사합니다
COPY src/resources/application.yml /app/resources/application.yml

# JAR 파일 복사
COPY build/libs/your-app-0.0.1-SNAPSHOT.jar app.jar

# 애플리케이션 실행
ENTRYPOINT ["java", "-jar", "/app/app.jar"]

0 comments on commit eac7bdf

Please sign in to comment.