Open peteh opened 1 year ago
This Dockerfile should work.with these changes in pyChatGPT
FROM python:3.9-slim-buster
RUN apt-get update && \
apt-get install -y chromium xvfb chromium-driver
COPY . /app
WORKDIR /app
RUN pip install -U PyVirtualDisplay
RUN pip install -e pyChatGPT/
# CMD ["python", "main.py"]
CMD ["bash"]
Thanks I'll try it when I'm back from the weekend. Will these changes be merged into the lib as well or will this be a manual change I need to do in docker every time?
I tried with your change and I had to switch buster with bullseye but it seems to be working. Thank you
However, I'm currently facing the new cloudflare verify that you are human challenge issue.
Actually I leave this open till the change is merged to the main branch
@peteh I don't think this will be merged into main, because then it fails for macos/windows. Lets see if anyone knows a solution for both.
Maybe by checking if we're running on Linux and only then passing that extra parameter?
from sys import platform
if platform == "linux" or platform == "linux2":
# linux
elif platform == "darwin":
# OS X
elif platform == "win32":
# Windows...
Did anybody succeed in running this headless in docker?
I tried with python:3.10-slim-bullseye and alpine but I'm struggling getting all the dependencies right.
Requirements.txt
Dockerfile
Error in docker: