Browse Source

dockerfile: 更新时区问题

Yi 7 tháng trước cách đây
mục cha
commit
d596320b16
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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