1een commited on
Commit
c7be5fb
·
verified ·
1 Parent(s): e6f0240

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -16,10 +16,13 @@ RUN apt-get update && apt-get install -y \
16
  # rm ./google-chrome-stable_current_amd64.deb
17
 
18
  # 设置工作目录
19
- # WORKDIR /app
20
 
21
- # 克隆源代码
22
- RUN git clone https://github.com/Theyka/Turnstile-Solver.git .
 
 
 
23
 
24
  # 安装 Python 依赖
25
  RUN pip install -r requirements.txt
 
16
  # rm ./google-chrome-stable_current_amd64.deb
17
 
18
  # 设置工作目录
19
+ WORKDIR /app
20
 
21
+ # 克隆源代码到临时目录,然后移动文件
22
+ RUN git clone https://github.com/Theyka/Turnstile-Solver.git temp && \
23
+ mv temp/* . && \
24
+ mv temp/.* . 2>/dev/null || true && \
25
+ rm -rf temp
26
 
27
  # 安装 Python 依赖
28
  RUN pip install -r requirements.txt