dragg2 commited on
Commit
50f6a85
·
verified ·
1 Parent(s): 240c4fb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -9,6 +9,10 @@ RUN git clone https://github.com/zhaoxiaozhao07/zai-api.git .
9
 
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
 
 
 
 
12
  RUN mkdir -p logs && chmod -R 777 /app
13
 
14
  ENV LISTEN_PORT=7860
 
9
 
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ # 这一步在root用户下执行,确保数据文件被正确下载
13
+ RUN python -c "from browserforge.headers import HeaderGenerator; HeaderGenerator()" \
14
+ && chmod -R 755 /usr/local/lib/python*/site-packages/browserforge/
15
+
16
  RUN mkdir -p logs && chmod -R 777 /app
17
 
18
  ENV LISTEN_PORT=7860