定制ubuntu:18.04,修改了时区为Asia/Shanghai;修改本地编码为zh_CN.UTF-8

This commit is contained in:
fastjrun 2020-05-11 22:18:34 +08:00
parent 3510df8b5b
commit ff887b26e2
2 changed files with 18 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.idea/

17
ubuntu/18.04.Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM arm64v8/ubuntu:18.04
ENV TZ Asia/Shanghai
RUN sed -i "s/ports.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list \
&& apt-get update && apt-get upgrade -y \
&& apt -y install language-pack-zh-hans tzdata \
&& ln -snf /usr/share/zoneinfo/TZ /etc/localtime && echo TZ > /etc/timezone \
&& dpkg-reconfigure -f noninteractive tzdata \
&& apt-get clean \
&& rm -rf /tmp/* /var/cache/* /usr/share/doc/* /usr/share/man/* /var/lib/apt/lists/*
ENV LANG zh_CN.UTF-8
ENV LANGUAGE zh_CN:zh
ENV LC_ALL zh_CN.UTF-8
# docker build . -t pi4k8s/ubuntu:18.04 -f 18.04.Dockerfile