Skip to content

Commit 0cae60c

Browse files
authored
fix: update Dockerfile to use JRE (GoogleCloudPlatform#5454)
1 parent 2aa2ce4 commit 0cae60c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

run/helloworld/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN mvn package -DskipTests
3131
# It's important to use OpenJDK 8u191 or above that has container support enabled.
3232
# https://hub.docker.com/r/adoptopenjdk/openjdk8
3333
# https://docs.docker.com/develop/develop-images/multistage-build/#use-multi-stage-builds
34-
FROM adoptopenjdk/openjdk11:alpine-slim
34+
FROM adoptopenjdk/openjdk11:alpine-jre
3535

3636
# Copy the jar to the production image from the builder stage.
3737
COPY --from=builder /app/target/helloworld-*.jar /helloworld.jar

run/image-processing/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Use AdoptOpenJDK for base image.
1818
# It's important to use OpenJDK 8u191 or above that has container support enabled.
1919
# https://hub.docker.com/r/adoptopenjdk/openjdk11
20-
FROM adoptopenjdk/openjdk11:alpine-slim
20+
FROM adoptopenjdk/openjdk11:alpine-jre
2121

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

run/system-package/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# [START run_system_package_dockerfile]
1717
# Use the Official OpenJDK image for a lean production stage of our multi-stage build.
1818
# https://hub.docker.com/r/adoptopenjdk/openjdk11/
19-
FROM adoptopenjdk/openjdk11:alpine
19+
FROM adoptopenjdk/openjdk11:alpine-jre
2020

2121
RUN apk --no-cache add graphviz ttf-ubuntu-font-family
2222
# [END run_system_package_dockerfile]

0 commit comments

Comments
 (0)