Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
poi1649 authored Nov 23, 2023
1 parent 4660421 commit a954680
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit a954680

Please sign in to comment.