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

This commit is contained in:
hlohaus 2025-10-10 09:21:32 +02:00
parent cf4ab392b6
commit 74165c616b
2 changed files with 2 additions and 5 deletions

View file

@ -12,7 +12,7 @@ ENV G4F_USER_ID $G4F_USER_ID
ENV G4F_DIR /app ENV G4F_DIR /app
RUN apt-get update && apt-get upgrade -y \ RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y git cron ffmpeg flac \ && apt-get install -y git cron ffmpeg flac gcc \
# Add user and user group # Add user and user group
&& groupadd -g $G4F_USER_ID $G4F_USER \ && groupadd -g $G4F_USER_ID $G4F_USER \
&& useradd -rm -G sudo -u $G4F_USER_ID -g $G4F_USER_ID $G4F_USER \ && useradd -rm -G sudo -u $G4F_USER_ID -g $G4F_USER_ID $G4F_USER \
@ -32,8 +32,5 @@ ENV PATH "${HOME}/.local/bin:${PATH}"
RUN git clone https://github.com/xtekky/gpt4free.git $G4F_DIR \ RUN git clone https://github.com/xtekky/gpt4free.git $G4F_DIR \
&& pip install --no-cache-dir -r requirements-slim.txt && pip install --no-cache-dir -r requirements-slim.txt
RUN git clone https://github.com/hlohaus/deepseek4free.git \
&& cd deepseek4free && git checkout 21Feb \
&& pip install --no-cache-dir . && cd .. && rm -rf deepseek4free
CMD python -m etc.tool.update && docker/update.sh & docker/start.sh CMD python -m etc.tool.update && docker/update.sh & docker/start.sh

View file

@ -67,7 +67,7 @@ DOMAINS = (
"yupp.ai", "yupp.ai",
) )
if has_browser_cookie3 and os.environ.get("DBUS_SESSION_BUS_ADDRESS") == "/dev/null": if has_browser_cookie3 and os.environ.get("DBUS_SESSION_BUS_ADDRESS", "/dev/null") == "/dev/null":
_LinuxPasswordManager.get_password = lambda a, b: b"secret" _LinuxPasswordManager.get_password = lambda a, b: b"secret"