g4f / Dockerfile
ehristoforu's picture
Update Dockerfile
3a7b0cd verified
raw
history blame contribute delete
554 Bytes
FROM python:3.9
RUN apt-get update && \
apt-get install -y \
python3-gi \
gir1.2-gtk-3.0 \
libgirepository1.0-dev \
libgtk-3-dev \
libqt5core5a \
libqt5gui5 \
libqt5widgets5 \
qtbase5-dev \
libwebkit2gtk-4.0-dev \
python3-pip \
python3-setuptools \
python3-wheel \
&& apt-get clean
RUN pip install -U pygobject PyQt5 qtpy
RUN pip install -U pywebview g4f[all]==0.3.3.4
WORKDIR /app
COPY . /app
EXPOSE 7860
CMD ["python", "-m", "g4f.gui.run", "-debug", "-host", "0.0.0.0", "-port", "7860"]