Skip to content

Commit

Permalink
Update Dockerfile for corretto-slim build (#924)
Browse files Browse the repository at this point in the history
*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.
  • Loading branch information
pxaws authored Oct 18, 2024
1 parent a825c19 commit d21ac61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/docker/corretto-slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM amazoncorretto:17-alpine-jdk
FROM public.ecr.aws/docker/library/amazoncorretto:17-alpine-jdk

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

FROM alpine:3.14
FROM public.ecr.aws/docker/library/alpine:3.14

COPY --from=0 /temp/java-17-amazon-corretto /usr/lib/jvm/java-17-amazon-corretto
COPY --from=0 /licenses /licenses
Expand Down

0 comments on commit d21ac61

Please sign in to comment.