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 4700869 commit cbcced4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM openjdk:17-jdk
ARG JAR_FILE=./build/libs/backend-0.0.1-SNAPSHOT.jar
ARG JAR_FILE=./backend/build/libs/backend-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} app.jar

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

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

0 comments on commit cbcced4

Please sign in to comment.