diff --git a/Dockerfile b/Dockerfile index 7fe383f..1a72765 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,12 @@ FROM bet-base:arm64 WORKDIR /app +RUN apt-get update && \ + apt-get install -y --no-install-recommends tzdata && \ + ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ + dpkg-reconfigure -f noninteractive tzdata && \ + rm -rf /var/lib/apt/lists/* + COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt @@ -10,11 +16,4 @@ ENV HTTP_PROXY=http://host.docker.internal:7890 COPY . . -# 先保存需要的配置文件,然后删除data目录,再重新创建并复制 -RUN cp ./data/bet_data/account_login_state/aszer27937@gmail.com.json /tmp/aszer27937@gmail.com.json && \ - rm -rf ./data && \ - mkdir -p ./data/bet_data/account_login_state/ && \ - cp /tmp/aszer27937@gmail.com.json ./data/bet_data/account_login_state/aszer27937@gmail.com.json && \ - rm /tmp/aszer27937@gmail.com.json - CMD ["bash"] \ No newline at end of file