Ver código fonte

dockerfile: 更新时区问题

Yi 7 meses atrás
pai
commit
d596320b16
1 arquivos alterados com 4 adições e 0 exclusões
  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