Browse Source

dockerfile: 更新时区问题

Yi 4 months ago
parent
commit
d596320b16
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Dockerfile

+ 4 - 0
Dockerfile

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