Skip to content

Commit

Permalink
deploy: Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu20 authored Dec 2, 2023
1 parent 28f50ee commit 0534e17
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM openjdk:17-jdk
ARG JAR_FILE=./backend/build/libs/backend-0.0.1-SNAPSHOT.jar
ARG JAR_FILE=./build/libs/dashboardback-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]

# 문서를 이미지의 /static/docs 디렉토리에 복사
COPY ./build/docs/asciidoc/*.html /static/docs/

# 애플리케이션 실행 시 -cp 옵션을 사용하여 /static/docs 디렉토리를 클래스패스에 추가
ENTRYPOINT ["java","-cp",".:/static/docs","-jar","/app.jar"]


0 comments on commit 0534e17

Please sign in to comment.