XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update Dockerfile-slim to include gcc and fix environment variable check in cookies.py

74165c61
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

2 个文件 +2 -5
Modified docker/Dockerfile-slim +1 -4
@@ -12,7 +12,7 @@ ENV G4F_USER_ID $G4F_USER_ID
12 12 ENV G4F_DIR /app
13 13
14 14 RUN apt-get update && apt-get upgrade -y \
15 && apt-get install -y git cron ffmpeg flac \
15 && apt-get install -y git cron ffmpeg flac gcc \
16 16 # Add user and user group
17 17 && groupadd -g $G4F_USER_ID $G4F_USER \
18 18 && useradd -rm -G sudo -u $G4F_USER_ID -g $G4F_USER_ID $G4F_USER \
@@ -32,8 +32,5 @@ ENV PATH "${HOME}/.local/bin:${PATH}"
32 32
33 33 RUN git clone https://github.com/xtekky/gpt4free.git $G4F_DIR \
34 34 && pip install --no-cache-dir -r requirements-slim.txt
35 RUN git clone https://github.com/hlohaus/deepseek4free.git \
36 && cd deepseek4free && git checkout 21Feb \
37 && pip install --no-cache-dir . && cd .. && rm -rf deepseek4free
38 35
39 36 CMD python -m etc.tool.update && docker/update.sh & docker/start.sh
Modified g4f/cookies.py +1 -1
@@ -67,7 +67,7 @@ DOMAINS = (
67 67 "yupp.ai",
68 68 )
69 69
70 if has_browser_cookie3 and os.environ.get("DBUS_SESSION_BUS_ADDRESS") == "/dev/null":
70 if has_browser_cookie3 and os.environ.get("DBUS_SESSION_BUS_ADDRESS", "/dev/null") == "/dev/null":
71 71 _LinuxPasswordManager.get_password = lambda a, b: b"secret"
72 72
73 73