diff --git a/Dockerfile b/Dockerfile index f16abfc..75d6e7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,7 @@ LABEL org.opencontainers.image.authors="lxh@cxh.cn" ENV TZ="Asia/Shanghai" # 设置时区和安装Redis -RUN apk add --no-cache tzdata redis-server && \ - cp /usr/share/zoneinfo/${TZ} /etc/localtime && \ - echo "${TZ}" > /etc/timezone && \ +RUN apk add --no-cache redis-server && \ rm -rf /var/lib/apt/lists/* # 设置工作目录