From a9546808075aa73b3a9ab924d26ff92a20be18b0 Mon Sep 17 00:00:00 2001 From: Bojun Kim Date: Thu, 23 Nov 2023 16:37:03 +0900 Subject: [PATCH] Update Dockerfile --- backend/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 7d971b1d..a183c96b 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,4 +1,7 @@ -FROM eclipse-temurin:17-jdk-alpine +FROM amazoncorretto:17-alpine-jdk + +ENV SPRING_PROFILE=${SPRING_PROFILE} + ARG JAR_FILE=./backend/build/libs/*.jar COPY ${JAR_FILE} app.jar -ENTRYPOINT ["java","-jar","/app.jar"] +ENTRYPOINT ["java","-Dspring.profiles.active=${SPRING_PROFILE}","-jar","/app.jar"]