Skip to content

Commit d21ac61

Browse files
authored
Update Dockerfile for corretto-slim build (#924)
*Issue #, if available:* *Description of changes:* Update Dockerfile to use public ECR image By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent a825c19 commit d21ac61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/docker/corretto-slim/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM amazoncorretto:17-alpine-jdk
1+
FROM public.ecr.aws/docker/library/amazoncorretto:17-alpine-jdk
22

33
# Copied from https://github.com/corretto/corretto-docker/blob/master/11/jre/alpine/Dockerfile
44
RUN apk update && apk add binutils && jlink --endian little --release-info $JAVA_HOME/release \
@@ -10,7 +10,7 @@ jdk.dynalink,jdk.httpserver,jdk.jsobject,jdk.localedata,jdk.naming.dns,jdk.secur
1010
jdk.jcmd,jdk.jfr" \
1111
--no-man-pages --no-header-files --strip-debug --output /temp/java-17-amazon-corretto
1212

13-
FROM alpine:3.14
13+
FROM public.ecr.aws/docker/library/alpine:3.14
1414

1515
COPY --from=0 /temp/java-17-amazon-corretto /usr/lib/jvm/java-17-amazon-corretto
1616
COPY --from=0 /licenses /licenses

0 commit comments

Comments
 (0)