This is an automated email from the ASF dual-hosted git repository. lhotari pushed a commit to branch branch-3.3 in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 8b47a528dedaf0ae65b3a5f20305667341980e95 Author: Zixuan Liu <[email protected]> AuthorDate: Tue Jun 25 18:04:02 2024 +0800 [improve][build] Use amazoncorretto:21-alpine image instead of apk installation (#22973) Signed-off-by: Zixuan Liu <[email protected]> (cherry picked from commit 7dba98bed46231ce9bd2bd2d8f5369b50a2119be) --- docker/pulsar/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docker/pulsar/Dockerfile b/docker/pulsar/Dockerfile index 2957e1587e9..38b74e8503d 100644 --- a/docker/pulsar/Dockerfile +++ b/docker/pulsar/Dockerfile @@ -54,11 +54,9 @@ RUN chmod -R o+rx /pulsar RUN echo 'OPTS="$OPTS -Dorg.xerial.snappy.use.systemlib=true"' >> /pulsar/conf/bkenv.sh ### Create one stage to include JVM distribution -FROM alpine:$ALPINE_VERSION AS jvm +FROM amazoncorretto:21-alpine AS jvm -RUN wget -O /etc/apk/keys/amazoncorretto.rsa.pub https://apk.corretto.aws/amazoncorretto.rsa.pub -RUN echo "https://apk.corretto.aws" >> /etc/apk/repositories -RUN apk add --no-cache amazon-corretto-21 binutils +RUN apk add --no-cache binutils # Use JLink to create a slimmer JDK distribution (see: https://adoptium.net/blog/2021/10/jlink-to-produce-own-runtime/) # This still includes all JDK modules, though in the future we could compile a list of required modules
