Skip to content

Commit

Permalink
실행 로그 출력 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
InJun2 committed Jun 30, 2024
1 parent 6989ab1 commit d4ad70e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
FROM openjdk:17

# JAR 파일 경로와 파일명
ARG JAR_FILE=build/libs/*.jar

# JAR 파일 이미지 내부로 복사
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]

# 어플리케이션 실행 및 로그 출력
CMD nohup java -jar /app.jar > stdout.log 2> stderr.log &

0 comments on commit d4ad70e

Please sign in to comment.