diff --git a/docker-modules/docker-spring-boot/pom.xml b/docker-modules/docker-spring-boot/pom.xml
index e633583ebf..649a5266a8 100644
--- a/docker-modules/docker-spring-boot/pom.xml
+++ b/docker-modules/docker-spring-boot/pom.xml
@@ -9,9 +9,9 @@
com.baeldung
- parent-boot-2
+ parent-boot-3
0.0.1-SNAPSHOT
- ../../parent-boot-2
+ ../../parent-boot-3
diff --git a/docker-modules/docker-spring-boot/src/main/docker/Dockerfile b/docker-modules/docker-spring-boot/src/main/docker/Dockerfile
index c0fd9c9cdb..50f9bd8ad8 100644
--- a/docker-modules/docker-spring-boot/src/main/docker/Dockerfile
+++ b/docker-modules/docker-spring-boot/src/main/docker/Dockerfile
@@ -2,12 +2,12 @@
#
# docker build -f src/main/docker/Dockerfile .
-FROM adoptopenjdk:11-jre-hotspot as builder
+FROM openjdk:17-jdk-alpine as builder
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} application.jar
RUN java -Djarmode=layertools -jar application.jar extract
-FROM adoptopenjdk:11-jre-hotspot
+FROM openjdk:17-jdk-alpine
COPY --from=builder dependencies/ ./
COPY --from=builder spring-boot-loader/ ./
COPY --from=builder internal-dependencies/ ./
diff --git a/docker-modules/docker-spring-boot/src/main/docker/springprofile/Dockerfile b/docker-modules/docker-spring-boot/src/main/docker/springprofile/Dockerfile
index f06f08cff6..032e8ee982 100644
--- a/docker-modules/docker-spring-boot/src/main/docker/springprofile/Dockerfile
+++ b/docker-modules/docker-spring-boot/src/main/docker/springprofile/Dockerfile
@@ -6,6 +6,6 @@
# To run with profiles:
# docker run -e "SPRING_PROFILES_ACTIVE=test1,test2,test3" docker-with-spring-profile:latest
-FROM openjdk:11
+FROM openjdk:17-jdk-alpine
COPY target/*.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]