Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
peageon authored May 19, 2024
1 parent c903056 commit dbec58d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#자바 21 베이스 이미지
FROM eclipse-temurin:21

#인자를 설정한다. argument.
ARG JAR_FILE=build/libs/*.jar

#이미지 생성할 때 파일을 복사한다. 위의 jar_file을 app.jar로 복사해서 이미지로 가져온다.
COPY ${JAR_FILE} app.jar

#컨테이너를 시작할 때 실행할 명령어.
ENTRYPOINT ["java", "-jar", "app.jar"]

0 comments on commit dbec58d

Please sign in to comment.