diff --git a/content/get-started/docker-concepts/building-images/multi-stage-builds.md b/content/get-started/docker-concepts/building-images/multi-stage-builds.md index c6336879c21d..fd77fe5f3ee4 100644 --- a/content/get-started/docker-concepts/building-images/multi-stage-builds.md +++ b/content/get-started/docker-concepts/building-images/multi-stage-builds.md @@ -152,7 +152,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`. 2. In the `Dockerfile`, define your base image by adding the following line: ```dockerfile - FROM eclipse-temurin:21.0.2_13-jdk-jammy + FROM eclipse-temurin:21.0.8_9-jdk-jammy ``` 3. Now, define the working directory by using the `WORKDIR` instruction. This will specify where future commands will run and the directory files will be copied inside the container image. @@ -190,7 +190,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`. And with that, you should have the following Dockerfile: ```dockerfile - FROM eclipse-temurin:21.0.2_13-jdk-jammy + FROM eclipse-temurin:21.0.8_9-jdk-jammy WORKDIR /app COPY .mvn/ .mvn COPY mvnw pom.xml ./ @@ -268,7 +268,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`. 1. Consider the following Dockerfile: ```dockerfile - FROM eclipse-temurin:21.0.2_13-jdk-jammy AS builder + FROM eclipse-temurin:21.0.8_9-jdk-jammy AS builder WORKDIR /opt/app COPY .mvn/ .mvn COPY mvnw pom.xml ./ @@ -276,7 +276,7 @@ Now that you have the project, you’re ready to create the `Dockerfile`. COPY ./src ./src RUN ./mvnw clean install - FROM eclipse-temurin:21.0.2_13-jre-jammy AS final + FROM eclipse-temurin:21.0.8_9-jre-jammy AS final WORKDIR /opt/app EXPOSE 8080 COPY --from=builder /opt/app/target/*.jar /opt/app/*.jar diff --git a/content/get-started/docker-concepts/building-images/using-the-build-cache.md b/content/get-started/docker-concepts/building-images/using-the-build-cache.md index bbe9a3282211..2a00042bce7a 100644 --- a/content/get-started/docker-concepts/building-images/using-the-build-cache.md +++ b/content/get-started/docker-concepts/building-images/using-the-build-cache.md @@ -22,7 +22,7 @@ Consider the following Dockerfile that you created for the [getting-started](./w ```dockerfile -FROM node:20-alpine +FROM node:22-alpine WORKDIR /app COPY . . RUN yarn install --production @@ -69,7 +69,7 @@ In this hands-on guide, you will learn how to use the Docker build cache effecti ```dockerfile - FROM node:20-alpine + FROM node:22-alpine WORKDIR /app COPY . . RUN yarn install --production @@ -121,20 +121,23 @@ In this hands-on guide, you will learn how to use the Docker build cache effecti
Steps - | -Description - | -Time Taken(1st Run) - | -Time Taken (2nd Run) - | -|
Steps + | +Description + | +Time Taken (1st Run) + | +Time Taken (2nd Run) + | +|
---|---|---|---|---|
1 | -Load build definition from Dockerfile + | Load build definition from Dockerfile
|
0.0 seconds | @@ -144,7 +147,7 @@ In this hands-on guide, you will learn how to use the Docker build cache effecti|
2 | -Load metadata for docker.io/library/node:20-alpine + | Load metadata for docker.io/library/node:22-alpine
|
2.7 seconds | @@ -154,7 +157,7 @@ In this hands-on guide, you will learn how to use the Docker build cache effecti|
3 | -Load .dockerignore + | Load .dockerignore
|
0.0 seconds | @@ -164,7 +167,7 @@ In this hands-on guide, you will learn how to use the Docker build cache effecti|
4 | -Load build context + | Load build context
(Context size: 4.60MB) |
@@ -176,7 +179,7 @@ In this hands-on guide, you will learn how to use the Docker build cache effecti
||
5 | -Set the working directory (WORKDIR) + | Set the working directory (WORKDIR)
|
0.1 seconds | @@ -186,7 +189,7 @@ In this hands-on guide, you will learn how to use the Docker build cache effecti|
6 | -Copy the local code into the container + | Copy the local code into the container
|
0.0 seconds | @@ -196,7 +199,7 @@ In this hands-on guide, you will learn how to use the Docker build cache effecti|
7 | -Run yarn install --production + | Run yarn install --production
|
10.0 seconds | @@ -206,7 +209,7 @@ In this hands-on guide, you will learn how to use the Docker build cache effecti|
8 | -Exporting layers + | Exporting layers
|
2.2 seconds | @@ -216,13 +219,14 @@ In this hands-on guide, you will learn how to use the Docker build cache effecti|
9 | -Exporting the final image + | Exporting the final image
|
3.0 seconds | 0.0 seconds |