| 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"] |