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"]