Sign inSign up

wgmac/centos-jof

By wgmac

Updated almost 3 years ago

based centos:centos7.9.2009 including openjdk1.8.0 libreoffice zh_CN font support

Image
0

905

wgmac/centos-jof repository overview

FROM centos:centos7.9.2009
ADD fonts /usr/share/fonts/chinese
COPY ./Shanghai /etc/localtime
ENV LANG=zh_CN.UTF-8
RUN yum -y install dejavu-sans-fonts fontconfig ttmkfdir kde-l10n-Chinese glibc-common java-1.8.0-openjdk libreoffice \
&& localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 \
&& export LANG=zh_CN.UTF-8 \
&& echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf \
&& echo 'LANG="zh_CN.UTF-8"' >> /etc/profile \
&& echo 'source /etc/profile' >> ~/.bashrc \
&& ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir \
&& sed -i '26i <dir>/usr/share/fonts/chinese</dir>' /etc/fonts/fonts.conf \
&& fc-cache -fv \
&& yum -y clean all \
&& yum -y autoremove \
&& package-cleanup --oldkernels --count=1 \
&& journalctl --vacuum-size=100M \
&& rm -rf /tmp/*

Tag summary

Content type

Image

Digest

sha256:ad77fd532

Size

521.2 MB

Last updated

almost 3 years ago

docker pull wgmac/centos-jof