This is an automated email from the ASF dual-hosted git repository.

zixuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 7dba98bed46 [improve][build] Use amazoncorretto:21-alpine image 
instead of apk installation (#22973)
7dba98bed46 is described below

commit 7dba98bed46231ce9bd2bd2d8f5369b50a2119be
Author: Zixuan Liu <node...@gmail.com>
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 <node...@gmail.com>
---
 docker/pulsar/Dockerfile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/docker/pulsar/Dockerfile b/docker/pulsar/Dockerfile
index b4294dd10da..81446ae5ee5 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

Reply via email to