From 6e3b571755cd46891893207655eeac6da7cd11e6 Mon Sep 17 00:00:00 2001 From: kzw200015 Date: Wed, 8 Apr 2020 11:38:14 +0800 Subject: [PATCH] Fix timezone --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fe7848b..05cd476 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,8 @@ FROM alpine:latest ENV TIME_ZONE=Asia/Shanghai -RUN ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo $TIME_ZONE > /etc/timezone +RUN apk update && apk add tzdata \ + && ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo $TIME_ZONE > /etc/timezone WORKDIR /root