File size: 455 Bytes
797cafe
 
 
 
 
 
 
 
 
 
 
 
1051b05
a8374e6
7dd7643
 
b916797
797cafe
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM mcr.microsoft.com/playwright/python:v1.44.0-jammy

RUN apt-get update && apt-get install -y git

RUN git clone https://github.com/VeroFess/grok2api.git /app

WORKDIR /app

RUN pip install --no-cache-dir flask requests curl_cffi werkzeug loguru python-dotenv patchright

RUN python -m patchright install --with-deps chrome

RUN mkdir /data/ && chmod -R 777 /data/

RUN chmod -R 777 /app/

ENV PORT=7860
ENV PYTHONUNBUFFERED=1

CMD ["python", "app.py"]