提交dockerfile

This commit is contained in:
2026-03-23 09:44:54 +08:00
commit 834242bb7e
11 changed files with 194 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
FROM registry.openanolis.cn/openanolis/anolisos:8.6
#javajdk path
ADD jdk-17_linux-x64_bin.tar.gz /usr/local/
ENV JAVA_HOME /usr/local/jdk-17.0.7
ENV PATH $PATH:/usr/local/jdk-17.0.7/bin
COPY dumb-init /usr/bin/
RUN yum -y install curl openssh 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 \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& curl -o /opt/arthas-boot.jar https://arthas.aliyun.com/arthas-boot.jar \
&& echo "export LC_ALL=zh_CN.utf8" >> /etc/profile \
&& echo "export LC_CTYPE=zh_CN.utf8" >> /etc/profile \
&& mkdir -pv /storage/operation-platform/logs \
&& yum clean all \
&& rm -rf /tmp/* /var/cache/yum/* \
&& source /etc/profile
#setup language 解决中文乱码
ENV LANG zh_CN.utf8
ENV LC_ALL zh_CN.utf8
ENTRYPOINT ["/usr/bin/dumb-init", "--"]