-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix : 내부 디렉토리 인식을 못하는 문제 해결
- Loading branch information
Showing
2 changed files
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
# 베이스 이미지 | ||
FROM amazoncorretto:17 | ||
|
||
# 인자 설정 - Jar_File | ||
# FROM openjdk:17-jdk | ||
ARG JAR_FILE=build/libs/*.jar | ||
|
||
# jar 파일 복제 | ||
COPY ${JAR_FILE} app.jar | ||
|
||
# 인자 설정 부분과 jar 파일 복제 부분 합쳐서 진행해도 무방 | ||
#COPY build/libs/*.jar app.jar | ||
COPY ${JAR_FILE} my-project.jar | ||
# COPY build/libs/*.jar my-project.jar | ||
ENTRYPOINT ["java","-jar","/my-project.jar"] | ||
|
||
# 실행 명령어 | ||
ENTRYPOINT ["java", "-jar", "app.jar"] | ||
RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime |