Files
bet/Dockerfile
2025-10-25 13:25:01 +08:00

20 lines
595 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM bet-base:arm64
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
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"]