Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN mvn clean package dependency:copy-dependencies \
-DskipTests

# Run the application
FROM eclipse-temurin:17-jre-focal
FROM eclipse-temurin:17.0.15_6-jre-focal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Pinning the base image version is a great practice for ensuring reproducible builds. However, the chosen version 17.0.15_6 is outdated (from mid-2022) and likely missing important security patches. Other Dockerfiles in this PR are updated to version 17.0.17_10. To maintain consistency and improve security, I recommend using a more recent version for this image as well. A newer version for focal is available, for example 17.0.17_8-jre-focal, which would be a much better choice.

FROM eclipse-temurin:17.0.17_8-jre-focal


# Security: Create a non-root user
RUN useradd -m appuser
Expand Down
2 changes: 1 addition & 1 deletion eventarc/audit-storage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN mvn package -DskipTests

# Use Eclipse Temurin for base image.
# https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds
FROM eclipse-temurin:17.0.16_8-jre-alpine
FROM eclipse-temurin:17.0.17_10-jre-alpine

# Copy the jar to the production image from the builder stage.
COPY --from=builder /app/target/audit-storage-*.jar /audit-storage.jar
Expand Down
2 changes: 1 addition & 1 deletion eventarc/pubsub/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN mvn package -DskipTests

# Use Eclipse Temurin for base image.
# https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds
FROM eclipse-temurin:17.0.16_8-jre-alpine
FROM eclipse-temurin:17.0.17_10-jre-alpine

# Copy the jar to the production image from the builder stage.
COPY --from=builder /app/target/events-pubsub-*.jar /events-pubsub.jar
Expand Down
2 changes: 1 addition & 1 deletion run/helloworld/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN mvn package -DskipTests

# Use Eclipse Temurin for base image.
# https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds
FROM eclipse-temurin:17.0.16_8-jre-alpine
FROM eclipse-temurin:17.0.17_10-jre-alpine

# Copy the jar to the production image from the builder stage.
COPY --from=builder /app/target/helloworld-*.jar /helloworld.jar
Expand Down
2 changes: 1 addition & 1 deletion run/image-processing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# It's important to use JDK 8u191 or above that has container support enabled.
# https://hub.docker.com/_/eclipse-temurin/
# https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds
FROM eclipse-temurin:17.0.16_8-jre
FROM eclipse-temurin:17.0.17_10-jre

# Install Imagemagick into the container image.
# For more on system packages review the system packages tutorial.
Expand Down
2 changes: 1 addition & 1 deletion run/system-package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# [START cloudrun_system_package_dockerfile]
# Use the Official eclipse-temurin image for a lean production stage of our multi-stage build.
# https://hub.docker.com/_/eclipse-temurin/
FROM eclipse-temurin:17.0.16_8-jre
FROM eclipse-temurin:17.0.17_10-jre

RUN apt-get update -y && apt-get install -y \
graphviz \
Expand Down