瀏覽代碼

add TZ for coscmd

Stille 3 年之前
父節點
當前提交
2d3691f942
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      coscmd/Dockerfile

+ 2 - 1
coscmd/Dockerfile

@@ -2,5 +2,6 @@ FROM python:3.7-slim
 LABEL maintainer="Stille <[email protected]>"
 
 ENV VERSION 1.8.6.24
-
+ENV TZ=Asia/Shanghai
+RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
 RUN pip install --upgrade --no-cache-dir coscmd