修改时区到亚洲时区,避免定时任务不按预期执行
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -2,6 +2,12 @@ FROM bet-base:arm64
|
|||||||
|
|
||||||
WORKDIR /app
|
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 .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
@@ -10,11 +16,4 @@ ENV HTTP_PROXY=http://host.docker.internal:7890
|
|||||||
|
|
||||||
COPY . .
|
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"]
|
CMD ["bash"]
|
||||||
Reference in New Issue
Block a user