From 82bbdaa85f1269e7178fbc95dbc34fa2991a8ede Mon Sep 17 00:00:00 2001 From: Kim Seung-yeop Date: Mon, 9 Sep 2024 15:01:16 +0900 Subject: [PATCH] fix: dockerfile --- Dockerfile | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index d528cb3..8d43bc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file