Skip to content

Commit 0d5e3d4

Browse files
renovate-botiennae
andauthored
chore(deps): update docker (#10212)
* chore(deps): update docker * fix: use a more current image + remove extraneous comments --------- Co-authored-by: Jennifer Davis <sigje@google.com>
1 parent c2c5ee9 commit 0d5e3d4

3 files changed

Lines changed: 3 additions & 15 deletions

File tree

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,21 @@
1-
# Build the application
21
FROM maven:3.9-eclipse-temurin-17 AS builder
32

43
WORKDIR /app
54

6-
# Copy only the build config first (for better layer caching)
75
COPY pom.xml .
86
COPY src ./src
97

10-
# 'clean package': Compiles the code and creates the thin jar in /app/target
11-
# 'dependency:copy-dependencies': Copies all JARs to /app/target/libs
12-
# We explicitly set -DoutputDirectory so we know EXACTLY where they are.
138
RUN mvn clean package dependency:copy-dependencies \
149
-DoutputDirectory=target/libs \
1510
-DskipTests
1611

17-
# Run the application
18-
FROM eclipse-temurin:17-jre-focal
12+
FROM eclipse-temurin:17.0.17_10-jre
1913

20-
# Security: Create a non-root user
2114
RUN useradd -m appuser
2215
USER appuser
2316
WORKDIR /app
2417

25-
# Copy the Thin Jar
2618
COPY --from=builder --chown=appuser:appuser /app/target/auth-1.0.jar app.jar
27-
28-
# Copy the Dependencies (The libraries)
2919
COPY --from=builder --chown=appuser:appuser /app/target/libs lib/
3020

31-
# Run with Classpath
32-
# We add 'app.jar' and everything in 'lib/' to the classpath.
3321
CMD ["java", "-cp", "app.jar:lib/*", "com.google.cloud.auth.samples.customcredentials.aws.CustomCredentialSupplierAwsWorkload"]

run/image-processing/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# It's important to use JDK 8u191 or above that has container support enabled.
1818
# https://hub.docker.com/_/eclipse-temurin/
1919
# https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds
20-
FROM eclipse-temurin:17.0.16_8-jre
20+
FROM eclipse-temurin:17.0.17_10-jre
2121

2222
# Install Imagemagick into the container image.
2323
# For more on system packages review the system packages tutorial.

run/system-package/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# [START cloudrun_system_package_dockerfile]
1616
# Use the Official eclipse-temurin image for a lean production stage of our multi-stage build.
1717
# https://hub.docker.com/_/eclipse-temurin/
18-
FROM eclipse-temurin:17.0.16_8-jre
18+
FROM eclipse-temurin:17.0.17_10-jre
1919

2020
RUN apt-get update -y && apt-get install -y \
2121
graphviz \

0 commit comments

Comments
 (0)