diff --git a/Dockerfile b/Dockerfile index 079acabe..e8a78b9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,10 @@ #---------------------------------- # Import docker image with maven installed -FROM maven:3.8.3-openjdk-17 as builder +FROM maven:3.9-eclipse-temurin-21 AS builder # Add maintainer, so that new user will understand who had written this Dockerfile -MAINTAINER Madhup Pandey +LABEL maintainer="Madhup Pandey" # Add labels to the image to filter out if we have multiple application running LABEL app=bankapp @@ -25,7 +25,7 @@ RUN mvn clean install -DskipTests=true #-------------------------------------- # Import small size java image -FROM openjdk:17-alpine as deployer +FROM eclipse-temurin:21-jre-alpine AS deployer # Copy build from stage 1 (builder) COPY --from=builder /src/target/*.jar /src/target/bankapp.jar diff --git a/pom.xml b/pom.xml index fc5bfeac..a746d176 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.3.3 + 3.4.7 com.example @@ -27,7 +27,7 @@ - 17 + 21 @@ -52,9 +52,8 @@ - mysql - mysql-connector-java - 8.0.33 + com.mysql + mysql-connector-j runtime @@ -75,15 +74,6 @@ org.springframework.boot spring-boot-maven-plugin - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - 1.8 - 1.8 - - diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 08663a63..97d40e36 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -7,5 +7,5 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver # JPA & Hibernate configuration spring.jpa.hibernate.ddl-auto=update -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect spring.jpa.show-sql=true