Commit e7e38dc6 authored by kalvin's avatar kalvin

解决db时区问题

parent fcec132c
...@@ -14,4 +14,8 @@ COPY ./init_db_data.sh $AUTO_RUN_DIR/ ...@@ -14,4 +14,8 @@ COPY ./init_db_data.sh $AUTO_RUN_DIR/
#给执行文件增加可执行权限 #给执行文件增加可执行权限
RUN chmod a+x $AUTO_RUN_DIR/init_db_data.sh RUN chmod a+x $AUTO_RUN_DIR/init_db_data.sh
RUN echo "dash dash/sh boolean false" | debconf-set-selections RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
\ No newline at end of file
# 解决时区问题
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment