Update static url

This commit is contained in:
hlohaus
2025-06-13 14:36:28 +02:00
parent e9179b87c2
commit a570ace2bc
4 changed files with 35 additions and 32 deletions

View File

@@ -21,8 +21,9 @@ RUN apt-get update && apt-get upgrade -y \
&& apt-get clean \
&& rm --recursive --force /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir -p $G4F_DIR
RUN chown "${G4F_USER_ID}:${G4F_USER_ID}" $G4F_DIR
RUN mkdir -p $G4F_DIR && touch /var/log/cron.log
RUN chown "${G4F_USER_ID}:${G4F_USER_ID}" $G4F_DIR /var/log/cron.log \
&& chmod gu+rw /var/run && chmod gu+s /usr/sbin/cron
USER $G4F_USER_ID
WORKDIR $G4F_DIR
@@ -30,9 +31,11 @@ WORKDIR $G4F_DIR
ENV HOME /home/$G4F_USER
ENV PATH "${HOME}/.local/bin:${PATH}"
RUN git clone https://github.com/xtekky/gpt4free.git $G4F_DIR
RUN printf "0 * * * * python -m etc.tool.update\n" > cronfile
RUN crontab cronfile
RUN pip install --no-cache-dir -r requirements-slim.txt
RUN git clone https://github.com/xtekky/gpt4free.git $G4F_DIR \
&& printf "*/15 * * * * python -m etc.tool.update\n" > cronfile && crontab cronfile \
&& 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 g4f --port 8080 --debug --reload
CMD cron && tail -f /var/log/cron.log & python -m g4f --port 8080 --debug --reload