添加 dockerfile/jdk/jdk21/Dockerfile
This commit is contained in:
22
dockerfile/jdk/jdk21/Dockerfile
Normal file
22
dockerfile/jdk/jdk21/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM registry.openanolis.cn/openanolis/anolisos:8.10
|
||||
|
||||
ADD bellsoft-jdk21.0.10+10-linux-amd64.tar.gz /usr/local/
|
||||
ENV JAVA_HOME /usr/local/jdk-21.0.10
|
||||
ENV PATH $PATH:$JAVA_HOME/bin
|
||||
|
||||
COPY dumb-init /usr/bin/
|
||||
|
||||
RUN yum -y install curl unzip ca-certificates tzdata wget bash glibc-langpack-zh \
|
||||
&& yum -y install fontconfig \
|
||||
&& fc-cache --force \
|
||||
&& yum update -y libnghttp2 \
|
||||
&& chmod +x /usr/bin/dumb-init \
|
||||
&& curl -o /opt/arthas-boot.jar https://arthas.aliyun.com/arthas-boot.jar \
|
||||
&& yum clean all \
|
||||
&& rm -rf /tmp/* /var/cache/yum/*
|
||||
|
||||
ENV LANG zh_CN.UTF-8
|
||||
ENV LC_ALL zh_CN.UTF-8
|
||||
ENV LC_CTYPE zh_CN.UTF-8
|
||||
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||
Reference in New Issue
Block a user