Skip to content

Commit

Permalink
Update Dockerfile.multi
Browse files Browse the repository at this point in the history
  • Loading branch information
ajeetraina authored Apr 3, 2024
1 parent 3a724d0 commit e4c7971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.multi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:17-jdk-jammy as base
FROM eclipse-temurin:21-jdk-jammy as base
WORKDIR /app
COPY .mvn/ .mvn
COPY mvnw pom.xml ./
Expand All @@ -12,7 +12,7 @@ FROM base as build
RUN ./mvnw package


FROM eclipse-temurin:17-jre-jammy as production
FROM eclipse-temurin:21-jre-jammy as production
EXPOSE 8080
COPY --from=build /app/target/spring-petclinic-*.jar /spring-petclinic.jar
CMD ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/spring-petclinic.jar"]

0 comments on commit e4c7971

Please sign in to comment.