bet最终镜像
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user