Kaynağa Gözat

更新Dockerfile

dongzhaorui 2 yıl önce
ebeveyn
işleme
9a467536c8
2 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 4 0
      find_source/Dockerfile
  2. 4 0
      find_source/Dockerfile1

+ 4 - 0
find_source/Dockerfile

@@ -1,6 +1,10 @@
 # 拉取镜像
 FROM python:3.8.10
 
+# 配置容器时间
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+RUN echo 'Asia/Shanghai' >/etc/timezone
+
 # 切换工作目录
 WORKDIR /app
 

+ 4 - 0
find_source/Dockerfile1

@@ -1,6 +1,10 @@
 # 拉取镜像
 FROM python:3.8.10
 
+# 配置容器时间
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+RUN echo 'Asia/Shanghai' >/etc/timezone
+
 # 切换工作目录
 WORKDIR /app