生成一個locale是zh_CN.UTF8的ubuntu docker

Dockerfile 如下

 

FROM ubuntu
RUN apt update && apt upgrade -y   &&  apt install openjdk-8-jre  inetutils-ping language-pack-zh-hans  -y && apt clean && apt autoremove  -y   && locale-gen &&  update-locale LANG=zh_CN.UTF-8 && localedef -c -f UTF-8 -i zh_CN zh_CN.utf8    && locale-gen
ENV LC_ALL zh_CN.UTF-8

 debian也是一樣的

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章