Browse Source

dockerfile:修改容器时间

Yi 1 year ago
parent
commit
dfe38321f4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Dockerfile

+ 4 - 0
Dockerfile

@@ -22,6 +22,10 @@ owner="yiping.xu"
 
 WORKDIR /app/kpt-tmr
 
+RUN rm -f /etc/localtime \
+&& ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
+&& echo "Asia/Shanghai" > /etc/timezone
+
 COPY --from=0 /app/kpt-tmr/conf/ /app/kpt-tmr/bin/conf/
 COPY --from=0  /app/kpt-tmr/bin/kptTmr /app/kpt-tmr/bin/kptTmr