Pārlūkot izejas kodu

dockerfile: 更新时区问题

Yi 7 mēneši atpakaļ
vecāks
revīzija
d596320b16
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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