Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
perf(dockerfile): ubuntu 18.04修改时区为Asia/Shanghai
Browse files Browse the repository at this point in the history
  • Loading branch information
zjZSTU committed Oct 5, 2019
1 parent 595cdd2 commit 4216c89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dockerfiles/system_mirror/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ FROM ubuntu:18.04
LABEL maintainer "zhujian <zjzstu@github.com>"

COPY sources.list .
ENV DEBIAN_FRONTEND=noninteractive
RUN mv sources.list /etc/apt/sources.list && \
apt-get update && \
apt-get install -y locales && \
apt-get install -y locales tzdata && \
locale-gen zh_CN.UTF-8 && \
update-locale LANG=zh_CN.UTF-8 LANGUAGE=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 && \
ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata && \
find /var/lib/apt/lists -type f -delete && \
find /var/cache -type f -delete

Expand Down

0 comments on commit 4216c89

Please sign in to comment.