Explorar o código

更新Dockerfile

dongzhaorui %!s(int64=2) %!d(string=hai) anos
pai
achega
9a467536c8
Modificáronse 2 ficheiros con 8 adicións e 0 borrados
  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