Skip to content

Commit

Permalink
Merge pull request #178 from KUSITMS-29th-TEAM-B/refactor/flight-171
Browse files Browse the repository at this point in the history
chore: dockerfile 수정(#171)
  • Loading branch information
whereami2048 authored Jun 9, 2024
2 parents e9fc128 + b9b492c commit 2b0bae8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ FROM amazoncorretto:17-alpine-jdk

# JAR_FILE 변수에 값을 저장
ARG JAR_FILE=/Api-Module/build/libs/Api-Module-0.0.1-SNAPSHOT.jar
ARG KEY_STORE=/Api-Module/src/main/resources/ssl/keystore.p12

# 변수에 저장된 것을 컨테이너 실행시 이름을 app.jar파일로 변경하여 컨테이너에 저장
COPY ${JAR_FILE} app.jar

COPY ${KEY_STORE} /ssl/keystore.p12
# 빌드된 이미지가 run될 때 실행할 명령어
ENTRYPOINT ["java","-jar","app.jar"]

0 comments on commit 2b0bae8

Please sign in to comment.