update alpine timezone

This commit is contained in:
ehlxr 2019-11-11 15:48:20 +08:00
parent 6a8f12cfe8
commit 5f7cb4fd7c
2 changed files with 9 additions and 5 deletions

View File

@ -4,8 +4,12 @@ LABEL maintainer="ehlxr <ehlxr.me@gmail.com>"
ENV TZ "Asia/Shanghai"
RUN apk upgrade --update \
&& apk add tzdata \
&& ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone \
&& rm -rf /var/cache/apk/*
# RUN apk upgrade --update \
# && apk add tzdata \
# && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
# && echo ${TZ} > /etc/timezone \
# && rm -rf /var/cache/apk/*
COPY Shanghai /usr/share/zoneinfo/${TZ}
RUN ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone

BIN
alpine/Shanghai Normal file

Binary file not shown.