-
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.
- Loading branch information
1 parent
546866d
commit 82bbdaa
Showing
1 changed file
with
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
# Base image로 OpenJDK 17 사용 | ||
FROM openjdk:17-jdk-slim | ||
|
||
# JAR 파일을 복사할 경로를 지정 | ||
ARG JAR_FILE=golagola-0.0.1-SNAPSHOT.jar | ||
|
||
COPY ${JAR_FILE} /app/app.jar | ||
|
||
# 컨테이너가 실행될 때 JAR 파일을 실행하도록 설정 | ||
ENTRYPOINT ["java", "-jar", "/app/app.jar"] | ||
FROM openjdk:17-jdk | ||
ARG JAR_FILE=build/libs/*.jar | ||
COPY ${JAR_FILE} app.jar | ||
#COPY src/main/resources/keystore.p12 /app/keystore.p12 | ||
ENTRYPOINT ["java", "-Dspring.profiles.active=docker", "-jar", "app.jar"] |