bluewinliang commited on
Commit
10d8a76
·
verified ·
1 Parent(s): cac6512

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -9,10 +9,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
9
 
10
  RUN git clone https://github.com/zhaoxiaozhao07/zai-api.git /app
11
 
12
- RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- ENV LISTEN_PORT=7860
 
 
15
 
 
16
  EXPOSE 7860
17
 
18
  CMD ["python", "main.py"]
 
9
 
10
  RUN git clone https://github.com/zhaoxiaozhao07/zai-api.git /app
11
 
12
+ RUN pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
13
 
14
+ RUN python -c "from browserforge.headers import HeaderGenerator; HeaderGenerator()" || true
15
+
16
+ RUN chmod -R 777 /usr/local/lib/python3.13/site-packages/browserforge/
17
 
18
+ ENV LISTEN_PORT=7860
19
  EXPOSE 7860
20
 
21
  CMD ["python", "main.py"]