grk2a / Dockerfile
ykl45's picture
Update Dockerfile
7dd7643 verified
raw
history blame contribute delete
455 Bytes
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"]